dhaulagani

Results issues of dhaulagani

## Summary Both `ttnn.polar_bw` (`_polar_bw`) and `ttnn.angle_bw` (`_angle_bw`) in [`ttnn/cpp/ttnn/operations/eltwise/complex_unary_backward/device/complex_unary_backward_op.cpp`](https://github.com/tenstorrent/tt-metal/blob/main/ttnn/cpp/ttnn/operations/eltwise/complex_unary_backward/device/complex_unary_backward_op.cpp) square unscaled complex components before inverting or taking a square root, losing **127 of the 254 float32/bfloat16 exponent binades** (`|z|...

community

### Summary Both `ttnn::hypot_bw` (`ttnn/cpp/ttnn/operations/eltwise/binary_backward/binary_backward.cpp`) and complex `ttnn::abs_bw(const Tensor&, const ComplexTensor&, ...)` (`ttnn/cpp/ttnn/operations/eltwise/unary_backward/unary_backward.cpp`) differentiate $\sqrt{a^2 + b^2}$, whose exact partial derivatives $$\frac{\partial \sqrt{a^2 + b^2}}{\partial (a, b)} = \left(\frac{a}{\sqrt{a^2 +...

op_cat: eltwise
community

## Summary `ttnn::softmax_in_place` and `ttnn::prim::softmax` have two related dimension-index adjustment defects for tensors with `rank < 4` (1D, 2D, and 3D tensors): 1. **`ttnn::softmax_in_place` unconditionally crashes with `TT_FATAL("Invalid dimension")` on...

community

## Summary In `ttnn/cpp/ttnn/operations/eltwise/binary_backward/binary_backward.cpp`: 1. **`div_bw` factor pairing overflow/underflow and duplicate reciprocal dispatch (lines 808–829)**: - For $\text{out} = \frac{\text{input}}{\text{other}}$, the second gradient is $\text{other\_grad} = -\text{grad} \cdot \frac{\text{input}}{\text{other}^2}$. -...

community

## Summary In `ttnn/cpp/ttnn/operations/data_movement/fold/fold.cpp`: ### 1. Swapped dimensions in `padded_shape2` for `fold_with_transpose_sharded_` (lines 197–212) Prior to line 198, the sharded tensor has layout: `{n, padded_c, padded_h32, w}` At line 198,...

community

## Summary In `ttnn/cpp/ttnn/operations/normalization/rmsnorm/rmsnorm.cpp`: Lines 22–30 define `ttnn::rms_norm`: ```cpp Tensor rms_norm( const Tensor& input_tensor, float epsilon, const std::optional& weight, const std::optional& bias, const std::optional& residual_input_tensor, const std::optional& memory_config, const std::optional&...

community

## Summary In `ttnn/cpp/ttnn/operations/eltwise/unary/accumulation/accumulation_common.cpp`: ### 1. Target `dtype` dropped on rank-0 and zero-volume tensors (lines 100–105) `accumulation_invoke` accepts an optional target `dtype` parameter: ```cpp Tensor accumulation_invoke( const Tensor& input_tensor, int64_t...

community

## Summary In `ttnn/cpp/ttnn/operations/normalization/batch_norm/batch_norm.cpp`: ### 1. Guard permits rank > 4 but internal implementation only reduces rank-4 dimensions (lines 18–26, 44–48) Line 45 checks: ```cpp TT_FATAL( input.logical_shape().rank() >= 4, "batch_norm...

op_cat: reduces
community