neurite icon indicating copy to clipboard operation
neurite copied to clipboard

error in ne.utils.resize:

Open FishJyz opened this issue 3 years ago • 1 comments

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)

FishJyz avatar Feb 23 '22 03:02 FishJyz

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.

adalca avatar Feb 24 '22 18:02 adalca