Skip to content

Commit

Permalink
#3014: Fix var_hw
Browse files Browse the repository at this point in the history
  • Loading branch information
VirdhatchaniKN committed Apr 23, 2024
1 parent 5c5c4b6 commit 35c2b10
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
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 var_hw as tt_var_hw


Expand All @@ -31,7 +31,7 @@ def run_var_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=1.7)
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: 1.7
args-gen: gen_dtype_layout_device
output-file: stats_var_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: 1.7
args-gen: gen_dtype_layout_device
output-file: stats_var_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: 1.7
args-gen: gen_dtype_layout_device
output-file: stats_var_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: 1.7
args-gen: gen_dtype_layout_device
output-file: stats_var_hw_sweep.csv
args:
Expand Down

0 comments on commit 35c2b10

Please sign in to comment.