Skip to content

RuntimeError: view size is not compatible with input tensor's size and stride  #26

@aaliixii

Description

@aaliixii

Hi,
When I try and run this with my own dataset with 4 classes, I get this error.
Screenshot 2022-03-07 at 2 48 08 PM

RuntimeError: view size is not compatible with input tensor's size and stride (at least one dimension spans across two contiguous subspaces). Use .reshape(...) instead.

Any idea what could be causing this?

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