Open marty1885 opened 1 hour ago
Thank you! On it!
Thanks @ayerofieiev-tt ! <3
Fixing this specific issue.
Then we should enable the clang-tidy check and fixing any issue that it surfaces. https://github.com/tenstorrent/tt-metal/blob/008c50a744ab398526f12992f9f4902283f9215a/.clang-tidy#L28
CC @blozano-tt @afuller-TT
Describe the bug This is a bug discovered by clang-analyzer following a long discussion on discord. In
run_operation.cpp
. Theoperation
object is moved before callingoperation.compute_output_shapes()
. Causing a UB. I am not sure weather if it is causing any actual trouble now, but probably worth fixing.Due to the nature of non-const functions. I am unable to fix myself as I lack the low level understanding of how this part of program works.
To Reproduce
In
ttnn/cpp/ttnn/run_operation.cpp
, line 372-374 and 437-437Expected behavior Should not trigger UB.
Screenshots 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.