Skip to content

Feature request: any(dim) all(dim) #4313

@stefdoerr

Description

@stefdoerr

Right now it seems that the .any and .all methods of ByteTensor don't accept a dimension and only operate on the whole array. It would be useful to be able to do these operations over a specific dimension only like tf.reduce_all does since now it forces me to do x.float().sum(dim=1) == x.shape[1]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions