Skip to content

IndexError: tuple index out of range preds shape: torch.Size([]) labels shape: torch.Size([1]) #15

@tsongsun

Description

@tsongsun

When I run the main.py, encounter an error, and then I print the shapes of preds and labels. I find tha t the problem may appear in the code of confusion_matrix[phase].add(preds, labels).

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