(tensor)
| 64 | ort_session = onnxruntime.InferenceSession(detector_onnx_save_path) |
| 65 | |
| 66 | def to_numpy(tensor): |
| 67 | if tensor.requires_grad: |
| 68 | return tensor.detach().cpu().numpy() |
| 69 | return tensor.cpu().numpy() |
| 70 | |
| 71 | # compute ONNX Runtime output prediction |
| 72 | ort_inputs = {ort_session.get_inputs()[0].name: to_numpy(dummy_input)} |
no outgoing calls
no test coverage detected
searching dependent graphs…