losttech / Gradient

This repository serves as a public issue tracker and documentation host for Gradient, full TensorFlow binding for .NET
Other
86 stars 4 forks source link

Accessing `PythonClassContainer<T>.Instance` crashes if Gradient is not initialized #15

Closed lostmsu closed 4 years ago

lostmsu commented 5 years ago

PythonClassContainer<T>.Instance should automatically initialize Gradient.

Workaround

Explicitly call GradientSetup.EnsureInitialized() prior to accessing PythonClassContainer<T>.Instance

lostmsu commented 4 years ago

The core issue is fixed, but TensorFlow binding needs to generate a warning (?) if the Python runtime was selected by a NuGet package, that did not require TensorFlow.

lostmsu commented 4 years ago

Fix released in Preview 7.