-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add conv1d pytorch sweep to nightly test, to prevent further regressions.
- Loading branch information
Pavle Josipovic
committed
Mar 6, 2025
1 parent
769d3d0
commit c3b830e
Showing
5 changed files
with
57 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
tests/ttnn/nightly/unit_tests/operations/conv2d/test_conv1d_sweeps.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# SPDX-FileCopyrightText: © 2025 Tenstorrent Inc. | ||
|
||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
from tests.sweep_framework.sweep_utils.conv2d_common import run_conv1d_short_sweep | ||
from tests.sweep_framework.sweeps.conv2d.short.conv2d_short_sweep import parameters as parameters_ttnn_pytorch | ||
from tests.sweep_framework.sweeps.conv2d.short.conv2d_short_sweep import ( | ||
failing_parameters_conv1d as failing_parameters_ttnn_pytorch, | ||
) | ||
|
||
from models.utility_functions import ( | ||
is_wormhole_b0, | ||
) | ||
|
||
import pytest | ||
|
||
|
||
@pytest.mark.parametrize("input_spec", parameters_ttnn_pytorch["short_sweep_suite_conv1d"]["input_specs"]) | ||
@pytest.mark.parametrize("device_params", [{"l1_small_size": 16384}], indirect=True) | ||
def test_ttnn_pytorch_sweep(device, input_spec): | ||
if device.core_grid.y != 8 and is_wormhole_b0(): | ||
pytest.skip("Needs 8x8 grid for wormhole_b0") | ||
|
||
# Check if input_spec is in failing_parameters | ||
if input_spec in failing_parameters_ttnn_pytorch: | ||
pytest.skip(f"Skipping test for failing input_spec: {input_spec}") | ||
|
||
pcc, messsage = run_conv1d_short_sweep( | ||
input_spec, | ||
device, | ||
)[0] | ||
assert pcc, messsage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters