Published
- 1 min read
ValueError: Failed to convert a NumPy array to a Tensor (Unsupported object type list).
The solution for this is noted below
ValueError: Failed to convert a NumPy array to a Tensor (Unsupported object type list).
Solution
x_train = np.asarray(x_train).astype(np.float32)
y_train = np.asarray(y_train).astype(np.float32)
Try other methods by searching on the site. That is if this doesn’t work