(y)
| 100 | |
| 101 | // Given a logits or label vector, return the class indices. |
| 102 | export function classesFromLabel(y) { |
| 103 | const axis = 1; |
| 104 | const pred = y.argMax(axis); |
| 105 | |
| 106 | return Array.from(pred.dataSync()); |
| 107 | } |
nothing calls this directly
no outgoing calls
no test coverage detected