iisignature icon indicating copy to clipboard operation
iisignature copied to clipboard

Invalid argument: 0-th value returned by pyfunc_0 is double, but expects float [[{{node lambda_1/Sig}}]]

Open XinruiYuan opened this issue 4 years ago • 2 comments

Hi, I want to run demo_keras.py to see how the signature were used in cnn training, however, it didn't work as title showed.

XinruiYuan avatar Dec 25 '20 08:12 XinruiYuan

I imagine lots has changed in theano, keras and tensorflow since that demo was made, making it unlikely to work, and you can learn the idea by reading the code even if it doesn’t always run.

In this particular case, it might be an iisignature change though. The sig function returns double, but maybe it used to return float.

if you are using theano, you might just need to change float32 to float64 here. If it’s tensorflow the change would be here.

bottler avatar Dec 25 '20 09:12 bottler

Thank you!!

dishant26 avatar Jan 15 '22 18:01 dishant26