You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: