Skip to content

Commit

Permalink
#6390: Update the test file and compare function
Browse files Browse the repository at this point in the history
  • Loading branch information
umadevimcw committed Mar 18, 2024
1 parent b1d3e1b commit 61eacf2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

from tests.ttnn.utils_for_testing import assert_with_pcc
from tests.ttnn.python_api_testing.sweep_tests import ttnn_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_allclose


def run_l1_loss_tests(input_shape, dtype, dlayout, in_mem_config, output_mem_config, data_seed, device):
Expand Down Expand Up @@ -38,7 +38,7 @@ def run_l1_loss_tests(input_shape, dtype, dlayout, in_mem_config, output_mem_con
tt_result = tt_result.squeeze(0)
tt_result = tt_result.squeeze(0)

success, pcc_value = comp_pcc(ref_value, tt_result)
success, pcc_value = comp_allclose(ref_value, tt_result[0, 0], atol=4, rtol=1e-1)
logger.debug(pcc_value)
logger.debug(success)

Expand All @@ -48,7 +48,7 @@ def run_l1_loss_tests(input_shape, dtype, dlayout, in_mem_config, output_mem_con
test_sweep_args = [
(
[(224, 128), (224, 128)],
[ttnn.bfloat8_b, ttnn.bfloat8_b],
[ttnn.bfloat16, ttnn.bfloat16],
[ttnn.TILE_LAYOUT, ttnn.TILE_LAYOUT],
[ttnn.DRAM_MEMORY_CONFIG, ttnn.DRAM_MEMORY_CONFIG, ttnn.DRAM_MEMORY_CONFIG],
ttnn.DRAM_MEMORY_CONFIG,
Expand Down

0 comments on commit 61eacf2

Please sign in to comment.