(batch_or_tensor)
| 23 | |
| 24 | |
| 25 | def asnumpy(batch_or_tensor): |
| 26 | if isinstance(batch_or_tensor, ndd.Batch): |
| 27 | return [test_tensor.asnumpy(t) for t in batch_or_tensor.tensors] |
| 28 | else: |
| 29 | return test_tensor.asnumpy(batch_or_tensor) |
| 30 | |
| 31 | |
| 32 | @eval_modes() |
no outgoing calls
no test coverage detected