ValueError: Failed to convert a NumPy array to a Tensor (Unsupported object type float).
np.asarray(x).astype('float32')
#otherwise probably faulty data
4.4
5
(Keras) ValueError: Failed to convert a NumPy array to a Tensor (Unsupported object type float)
Thank you!
5
0
Are there any code examples left?
New code examples in category Python