Skip to content

Advanced indexing output contains unexpected 0s #1215

@manopapad

Description

@manopapad

See nv-legate/discussion#6 for full context. Copying here one of the bugs reported by @IlgarBaghishov:

Another issue we have now is with values of the masked a_train matrix. If I print the last rows of the a_train matrix instead of first rows after masking operation I get zeros like this:

[[0. 0. 0. ... 0. 0. 0.]
 [0. 0. 0. ... 0. 0. 0.]
 [0. 0. 0. ... 0. 0. 0.]
 ...
 [0. 0. 0. ... 0. 0. 0.]
 [0. 0. 0. ... 0. 0. 0.]
 [0. 0. 0. ... 0. 0. 0.]]

Seems like this advanced indexing operation did not finish fully and thus left some of the rows as zeros.

We also tried cupynumeric.compress but it just crashes silently.

@IlgarBaghishov could you please share the full script (updated with printing the last rows rather than the first rows), and how you're running it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions