(i_batch)
| 100 | ) |
| 101 | |
| 102 | def compute_features(i_batch): |
| 103 | i, batch = i_batch |
| 104 | with torch.no_grad(): |
| 105 | return self.models[i](batch, features=True) |
| 106 | |
| 107 | for logits, _, features in pool.imap(compute_features, enumerate(batches)): |
| 108 | output_features.append(features.cpu().numpy()) |
nothing calls this directly
no outgoing calls
no test coverage detected