Skip to content

Commit

Permalink
#8593: Fix pow pcc drop issue
Browse files Browse the repository at this point in the history
  • Loading branch information
umadevimcw committed Oct 16, 2024
1 parent a73be8a commit ed19ce0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
def run_pow_tests(input_shape, dtype, dlayout, in_mem_config, output_mem_config, data_seed, device):
torch.manual_seed(data_seed)

x = torch.Tensor(size=input_shape[0]).uniform_(-100, 100).to(torch.bfloat16)
x = torch.Tensor(size=input_shape[0]).uniform_(-100, 100)
y = random.uniform(0, 10)

try:
Expand All @@ -33,6 +33,8 @@ def run_pow_tests(input_shape, dtype, dlayout, in_mem_config, output_mem_config,

assert len(tt_result.shape) == len(ref_value.shape)
assert tt_result.shape == ref_value.shape
print(tt_result.dtype)
print(ref_value.dtype)
assert_with_pcc(ref_value, tt_result, 0.99)


Expand Down

0 comments on commit ed19ce0

Please sign in to comment.