SciSharp / Keras.NET

Keras.NET is a high-level neural networks API for C# and F#, with Python Binding and capable of running on top of TensorFlow, CNTK, or Theano.
MIT License
599 stars 127 forks source link

App hangs with np.array(input) #219

Closed Jamminroot closed 2 years ago

Jamminroot commented 2 years ago

Hello! Thanks for such a brilliant work.

I've recently started adapting my code to have some basic UI with WinForms, and I instantly stumbled on app hanging on numpy call. Sample code:

var xInputF = np.array(inputs);
var xInput = xInputF.reshape(count, depthDays, sizePerDay);

App won't go further than np.array(inputs); Here's stack trace of a thread which seem to be stuck (model is created just fine): image

That happends when I work with Keras from a thread

Jamminroot commented 2 years ago

Haven't read manual thoroughly, sorry.