Open zws98 opened 10 months ago
Line 67, train_val.py:
if isinstance(cos_thetas, tuple): cos_thetas, bad_grad = cos_thetas labels[bad_grad.squeeze(-1)] = -100 # ignore_index
How can I understand this part of code? May I ask in which situation this tuple output can be caused?
Line 67, train_val.py:
if isinstance(cos_thetas, tuple): cos_thetas, bad_grad = cos_thetas labels[bad_grad.squeeze(-1)] = -100 # ignore_index
How can I understand this part of code? May I ask in which situation this tuple output can be caused?