Skip to content

MetaTensor size bug in transform function #5414

@chuxiang93

Description

@chuxiang93

Since SIZE is a function of the class metatensor, this sentence does not work. The correct way should be "fg_indices.size()[0]".

pos_ratio = 0 if fg_indices.size == 0 else 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions