From 78f8557af21afc467edcea3203244a482d057863 Mon Sep 17 00:00:00 2001 From: Justin Chu Date: Tue, 30 Jul 2024 17:13:03 +0000 Subject: [PATCH] size-0 --- tests/function_libs/torch_lib/ops_test_data.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/function_libs/torch_lib/ops_test_data.py b/tests/function_libs/torch_lib/ops_test_data.py index bff465839..34600cf91 100644 --- a/tests/function_libs/torch_lib/ops_test_data.py +++ b/tests/function_libs/torch_lib/ops_test_data.py @@ -713,19 +713,21 @@ def _where_input_wrangler( dtypes=(torch.bool,), reason="fixme: ORT does not implement SplitToSequence for bool inputs: https://github.com/microsoft/onnxruntime/issues/16905", ), - TorchLibOpInfo("clamp_max", core_ops.aten_clamp).skip( - enabled_if=sys.version_info[:2] >= (3, 9) or sys.platform != "win32", - reason="fails in this particular case", - ), TorchLibOpInfo("clamp_max", core_ops.aten_clamp_max).skip( matcher=lambda sample: len(sample.input.shape) == 0, enabled_if=version_utils.onnxruntime_older_than("1.16"), reason="fixme (core dump): ORT aborts on scalar inputs to Reduce*-18. https://github.com/microsoft/onnxruntime/issues/16492", + ).skip( + reason="Size 0 inputs are not handled by design", + matcher=lambda sample: sample.input.numel() == 0, ), TorchLibOpInfo("clamp_min", core_ops.aten_clamp_min).skip( matcher=lambda sample: len(sample.input.shape) == 0, enabled_if=version_utils.onnxruntime_older_than("1.16"), reason="fixme (core dump): ORT aborts on scalar inputs to Reduce*-18. https://github.com/microsoft/onnxruntime/issues/16492", + ).skip( + reason="Size 0 inputs are not handled by design", + matcher=lambda sample: sample.input.numel() == 0, ), TorchLibOpInfo("clone", core_ops.aten_clone), TorchLibOpInfo("complex", core_ops.aten_complex),