Skip to content

error in ne.utils.resize:  #54

Open

Description

@FishJyz

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)

Activity

  1. adalca commented on Feb 24, 2022

    @adalca
    Owner

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions