Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#3015: Fix std_hw #7708

Merged
merged 1 commit into from
Apr 24, 2024
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import tt_lib as ttl

from tests.tt_eager.python_api_testing.sweep_tests import pytorch_ops
from tests.tt_eager.python_api_testing.sweep_tests.comparison_funcs import comp_pcc
from tests.tt_eager.python_api_testing.sweep_tests.comparison_funcs import comp_pcc, comp_allclose
from tests.tt_eager.python_api_testing.sweep_tests.tt_lib_ops import std_hw as tt_std_hw


Expand All @@ -31,7 +31,7 @@ def run_std_hw_tests(input_shape, dtype, dlayout, in_mem_config, out_mem_config,
)

# compare tt and golden outputs
success, pcc_value = comp_pcc(ref_value, tt_result)
success, pcc_value = comp_allclose(ref_value, tt_result, atol=0.1)
logger.debug(pcc_value)

assert success
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ test-list:
low: -10
high: 10
comparison:
function: comp_pcc
function: comp_allclose
args:
atol: 0.1
args-gen: gen_dtype_layout_device
output-file: stats_std_hw_sweep.csv
args:
Expand All @@ -42,7 +44,9 @@ test-list:
low: -10
high: 10
comparison:
function: comp_pcc
function: comp_allclose
args:
atol: 0.1
args-gen: gen_dtype_layout_device
output-file: stats_std_hw_sweep.csv
args:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ test-list:
low: -10
high: 10
comparison:
function: comp_pcc
function: comp_allclose
args:
atol: 0.1
args-gen: gen_dtype_layout_device
output-file: stats_std_hw_sweep.csv
args:
Expand All @@ -42,7 +44,9 @@ test-list:
low: -10
high: 10
comparison:
function: comp_pcc
function: comp_allclose
args:
atol: 0.1
args-gen: gen_dtype_layout_device
output-file: stats_std_hw_sweep.csv
args:
Expand Down
Loading