Open hschoi4448 opened 6 months ago
@hschoi4448 Without any change in acosh_bw logic I am getting following output
FYI, We are testing and developing in GS VM
I'm using wormhole_b0
.
My commit is fcd006b981fa1b0d8a0f7395060513d4e402a7a9` but the issue still persists.
I will also test it in grayskull.
@hschoi4448 Without any change in acosh_bw logic I am getting following output FYI, We are testing and developing in GS VM
I tested the same code again in GS, and the test passed. It seems like the issue might be with wormhole.
@tt-aho @eyonland @jliangTT In WHB0 we are unable to store nan in tensor. The above is with respect to storing the nan. For GS the some code works fine. Need input on this.
How to address this issue? or Can I close this issue considering the hardware limitations?
@hschoi4448 @razorback3 https://github.com/tenstorrent/tt-metal/issues/8944, https://github.com/tenstorrent/tt-metal/issues/8945#issuecomment-2146247945, Please look at this comments for this issue
Describe the bug A clear and concise description of what the bug is.
The
acosh_bw
function returns an invalid gradient value.To Reproduce Steps to reproduce the behavior:
SPDX-License-Identifier: Apache-2.0
import torch import pytest import tt_lib from tests.tt_eager.python_api_testing.unit_testing.backward_ops.utility_funcs import data_gen_pt_tt, compare_results
def data_gen_pt_tt(input_shapes, device, required_grad=False, val=1): pt_tensor = (torch.ones(input_shapes, requires_grad=required_grad) * val).bfloat16() tt_tensor = ( tt_lib.tensor.Tensor(pt_tensor, tt_lib.tensor.DataType.BFLOAT16).to(tt_lib.tensor.Layout.TILE).to(device) ) return pt_tensor, tt_tensor
@pytest.mark.parametrize( "input_shapes", ( (torch.Size([1, 1, 32, 32])), ), ) def test_bw_acosh(input_shapes, device): in_data, input_tensor = data_gen_pt_tt(input_shapes, device, True, val=0.5) grad_data, grad_tensor = data_gen_pt_tt(input_shapes, device, False, val=1)
Expected behavior A clear and concise description of what you expected to happen.
I want
acosh_bw
to return the correct gradientScreenshots If applicable, add screenshots to help explain your problem.
Please complete the following environment information:
Additional context Add any other context about the problem here.