neurite
neurite copied to clipboard
error in ne.utils.resize:
Error raised when i use ne.utils.resize()
:
ValueError: Failed to convert a NumPy array to a Tensor (Unsupported numpy type: NPY_INT).
And I located it in ne.utils.sub2ind2d()
, neurite\tf\utils\utils.py line 937,
Solution(?) :
neurite\tf\utils\utils.py line 933:
k = np.cumprod(siz[::-1])
-> k = np.cumprod(siz[::-1]).astype(np.int32)
Hi @FishJyz , would you mind giving some information about the type of data you are passing to resize? We haven't seen this issue and it's a frequently used function, so we'd like to understand the issue.