Skip to content

A question about cmmd.py #33

@gloomy1999

Description

@gloomy1999

Maybe in cmmd function, threre should be "s_label = torch.zeros(32, args.nc).scatter_(1, s_label.data, 1)" rather than "s_label = torch.zeros(32, 31).scatter_(1, s_label.data, 1)"? Cause when I reviewed the code using "args.nc = 32", I got error like "RuntimeError: Invalid index in scatter". And when I change it and other relevant parts to "args.nc", it works.

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