guan404ming opened a new pull request, #19843: URL: https://github.com/apache/tvm/pull/19843
## Related Issue closes #19693 ## Why NumPy 2.x raises TypeError on int(np.array([3])), so importing an ONNX NonMaxSuppression whose scalar params are 1-D single-element tensors (shape[1], common from exporters) crashed. ## How - Cast the constant max_output_boxes_per_class / iou_threshold / score_threshold via .numpy().item(), which accepts both 0-D and 1-element tensors (matching the existing param-Var path). - Add an import test feeding 1-D scalar constants (the default folding path that the existing test_nms misses). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
