ttnn.polar_bw
- ttnn.polar_bw = Operation(python_fully_qualified_name='ttnn.polar_bw', function=<ttnn._ttnn.operations.complex_unary_backward.polar_bw_t object>, preprocess_golden_function_inputs=<function default_preprocess_golden_function_inputs>, golden_function=<function _golden_function>, postprocess_golden_function_outputs=<function default_postprocess_golden_function_outputs>, is_cpp_operation=True, is_experimental=False)
-
Performs backward operations for complex polar function on
input_tensor
with givengrad_tensor
.- Parameters:
-
grad_tensor (ComplexTensor) – the input tensor.
input_tensor (ComplexTensor) – the input tensor.
- Keyword Arguments:
-
memory_config (ttnn.MemoryConfig) – Memory configuration for the operation.
- Returns:
-
List of ttnn.Tensor – the output tensor.
Note
Supported dtypes, layouts, and ranks:
Dtypes
Layouts
Ranks
BFLOAT16
TILE
2, 3, 4
Example
>>> grad_tensor = ttnn.to_device(ttnn.from_torch(torch.tensor((1, 2), dtype=torch.bfloat16)), device=device) >>> tensor = ttnn.to_device(ttnn.from_torch(torch.tensor((1, 2), dtype=torch.bfloat16)), device=device) >>> output = ttnn.polar_bw(grad_tensor, tensor)