Skip to content

Commit

Permalink
16492
Browse files Browse the repository at this point in the history
  • Loading branch information
justinchuby committed Jan 3, 2025
1 parent 48f7449 commit ad8fd54
Showing 1 changed file with 7 additions and 59 deletions.
66 changes: 7 additions & 59 deletions tests/function_libs/torch_lib/ops_test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -566,19 +566,11 @@ def _where_input_wrangler(
"amax",
core_ops.aten_amax,
input_wrangler=_amin_amax_input_wrangler,
).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 ReduceMax-18. https://github.com/microsoft/onnxruntime/issues/16492",
),
TorchLibOpInfo(
"amin",
core_ops.aten_amin,
input_wrangler=_amin_amax_input_wrangler,
).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 ReduceMin-18. https://github.com/microsoft/onnxruntime/issues/16492",
),
TorchLibOpInfo(
"any",
Expand Down Expand Up @@ -728,21 +720,11 @@ def _where_input_wrangler(
reason="fixme: ORT does not implement SplitToSequence for bool inputs: https://github.com/microsoft/onnxruntime/issues/16905",
),
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,
Expand Down Expand Up @@ -977,11 +959,7 @@ def _where_input_wrangler(
matcher=lambda sample: torch.numel(sample.input) == 0,
reason="values of matmul of [m, 0] and [0, n] matrices are undefined",
),
TorchLibOpInfo("maximum", core_ops.aten_maximum).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",
),
TorchLibOpInfo("maximum", core_ops.aten_maximum),
TorchLibOpInfo("maximum_bool", core_ops.aten_maximum_bool),
TorchLibOpInfo(
"mean",
Expand All @@ -1002,12 +980,6 @@ def _where_input_wrangler(
TorchLibOpInfo("mH", core_ops.aten_mH),
TorchLibOpInfo("mH", core_ops.aten_mH_complex, complex=True),
TorchLibOpInfo("min_dim", core_ops.aten_min_dim)
.skip(
variant_name="reduction_with_dim",
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",
)
.xfail(
variant_name="reduction_with_dim",
dtypes=(torch.int64,),
Expand All @@ -1031,11 +1003,7 @@ def _where_input_wrangler(
matcher=lambda sample: len(sample.args) > 0,
reason="this ATen overload only supports one tensor as input by design",
),
TorchLibOpInfo("minimum", core_ops.aten_minimum).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",
),
TorchLibOpInfo("minimum", core_ops.aten_minimum),
TorchLibOpInfo("minimum_bool", core_ops.aten_minimum_bool),
TorchLibOpInfo("mm", core_ops.aten_mm).skip(
matcher=lambda sample: torch.numel(sample.input) == 0,
Expand Down Expand Up @@ -1516,12 +1484,12 @@ def _where_input_wrangler(
reason="fixme: result mismatch. https://github.com/microsoft/onnxscript/issues/853",
),
TorchLibOpInfo("tril", core_ops.aten_tril).xfail(
dtypes=(torch.int32, torch.bool),
reason="fixme: ORT does not have an implementation of Trilu for int32 or bool.",
dtypes=(torch.int32,),
reason="fixme: ORT does not have an implementation of Trilu for int32.",
),
TorchLibOpInfo("triu", core_ops.aten_triu).xfail(
dtypes=(torch.int32, torch.bool),
reason="fixme: ORT does not have an implementation of Trilu for int32 or bool.",
dtypes=(torch.int32,),
reason="fixme: ORT does not have an implementation of Trilu for int32.",
),
TorchLibOpInfo("trunc", core_ops.aten_trunc),
TorchLibOpInfo(
Expand Down Expand Up @@ -1610,21 +1578,11 @@ def _where_input_wrangler(
dtypes=(torch.float16, torch.int64, torch.int32),
),
TorchLibOpInfo("argmax", core_ops.aten_argmax)
.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",
)
.xfail(
dtypes=(torch.int64,),
reason="fixme: ORT did not implement ArgMax for int64. https://github.com/microsoft/onnxruntime/issues/16654",
),
TorchLibOpInfo("argmin", core_ops.aten_argmin)
.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",
)
.xfail(
dtypes=(torch.int64,),
reason="fixme: ORT did not implement ArgMin for int64. https://github.com/microsoft/onnxruntime/issues/16654",
Expand All @@ -1636,11 +1594,7 @@ def _where_input_wrangler(
variant_name="partial_views",
reason="ONNX doesn't have partial view for tensor",
),
TorchLibOpInfo("clamp", core_ops.aten_clamp).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",
),
TorchLibOpInfo("clamp", core_ops.aten_clamp),
TorchLibOpInfo(
"ops.aten.col2im",
nn_ops.aten_col2im,
Expand Down Expand Up @@ -1696,12 +1650,6 @@ def _where_input_wrangler(
),
TorchLibOpInfo("logit", core_ops.aten_logit, tolerance={torch.float16: (1e-1, 7e-4)}),
TorchLibOpInfo("max_dim", core_ops.aten_max_dim)
.skip(
variant_name="reduction_with_dim",
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",
)
.xfail(
variant_name="reduction_with_dim",
dtypes=(torch.int64,),
Expand Down

0 comments on commit ad8fd54

Please sign in to comment.