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

Usage of GradientSetup.UseEnvironment #7

Closed Nucs closed 5 years ago

Nucs commented 5 years ago

Can you provide an example of what paths to place in GradientSetup.UseEnvironment(...).

lostmsu commented 5 years ago

@Nucs, please take a look at https://github.com/losttech/WhichPython/blob/master/src/PythonEnvironment.cs (it is a dependency of Gradient).

You can use PythonEnvironment.EnumerateEnvironments to get the list of Python environments Gradient will recognize automatically on your machine.

These environments will also give you an idea of what to pass to the PythonEnvironment constructor, if you want a custom one.

Nucs commented 5 years ago

EnumerateEnvironments returns an empty enumerate. I'm opening an issue there explaining the problem.

Nucs commented 5 years ago

Incase anyone needs to know how a loaded environment looks like: image

lostmsu commented 5 years ago

Just FYI, this is just for Windows. On Linux and MacOS it will look differently.