Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions tests/test_torch_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,13 @@ def _list_default(aten_type):
}
)

# Ops whose reference path needs too much memory for the generic large CI shape.
_HIGH_MEMORY_REFERENCE_CASES = frozenset(
{
("cuda", "svd", (4, 4, 5632)),
}
)

# Ops where the ATen `_out` schema and the Python reference (`torch.<op>`,
# `torch.nn.functional.<op>`) diverge in positional-argument ordering, so
# the harness's purely-positional reference call lands an InfiniOps
Expand Down Expand Up @@ -451,6 +458,9 @@ def test_op(op_meta, shape, dtype, device, rtol, atol):
if (device, aten_name) in _VENDOR_CRASH_OPS:
pytest.skip(f"`{aten_name}` crashes on `{device}` vendor kernel")

if (device, aten_name, shape) in _HIGH_MEMORY_REFERENCE_CASES:
pytest.skip(f"`{aten_name}` reference path needs too much memory")

if device == "cuda" and aten_name in _DEVICE_ASSERTING_OPS:
pytest.skip(
f"`{aten_name}` triggers a CUDA device-side assert on random inputs"
Expand Down
Loading