'numpy.float16' object cannot be interpreted as an integer code example
Example: numpy.float64' object cannot be interpreted as an integer
false:
np.zeros(np.float(3))
Right:
np.zeros(np.int(np.float(3)))
false:
np.zeros(np.float(3))
Right:
np.zeros(np.int(np.float(3)))