(num, shift)
| 388 | # loss = self.criterion(sim_matrix, correct_labels) |
| 389 | # return loss |
| 390 | def cycle_index(num, shift): |
| 391 | arr = torch.arange(num) + shift |
| 392 | arr[-shift:] = torch.arange(shift) |
| 393 | return arr |
| 394 | |
| 395 | # def sample_negative_class_indices(num_classes, num_negatives, labels, device ): |
| 396 | # negative_indices = [] |
nothing calls this directly
no outgoing calls
no test coverage detected