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

Simplify passing custom C# classes to TensorFlow #5

Closed lostmsu closed 5 years ago

lostmsu commented 5 years ago

Currently to pass the class constructors one needs to make a factory method, and pass it using PythonFunctionContainer.Of, which is quite cumbersome.

PythonClassContainer should have a similar generic method, that automatically builds all the necessary factories.

@AndreLuettig

lostmsu commented 5 years ago

Fixed in Preview 6. Use PythonClassContainer<Class>.Instance.