Keras.NET
Keras.NET copied to clipboard
console output in dotnet interactive jupyter notebook
standard output when fitting the model does not show, nor does model.summary() when working in VSCode.
Is there a way to capture the std out ?
I suspect this issue is more a pythonnet interop problem rather than a Keras.NET one. This hack keeps me moving forward
//insert before any Keras.NET code
PythonEngine.Initialize();
dynamic sys = Py.Import("sys");
var write = (string s) => Console.Write(s);
var flush = () => {};
sys.stdout = new {write = write, flush = flush };
ugly as, I'm all ears to better suggestions.
Stale issue message