Skip to content

ToTensor confuse me with the way it takes input #3782

@MohamedAliRashad

Description

@MohamedAliRashad

So the ToTensor class of to_tensor function takes input in the dimension of (H, W) while PIL has it's images dimension be (W, H).
Why is this transpose ?

cc @vfdev-5

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions