ttnn.std

ttnn.std = Operation(python_fully_qualified_name='ttnn.std', function=<ttnn._ttnn.operations.reduction.std_t object>, preprocess_golden_function_inputs=<function default_preprocess_golden_function_inputs>, golden_function=<function _create_golden_function.<locals>.golden_function>, postprocess_golden_function_outputs=<function default_postprocess_golden_function_outputs>, is_cpp_operation=True, is_experimental=False)
Parameters:
  • input_a (ttnn.Tensor) – the input tensor.

  • dim (number) – dimension value .

Keyword Arguments:

memory_config (ttnn.MemoryConfig, optional) – Memory configuration for the operation. Defaults to None.

Returns:

ttnn.Tensor – the output tensor.

Example

>>> input_a = ttnn.to_device(ttnn.from_torch(torch.tensor((1, 2), dtype=torch.bfloat16)), device=device)
>>> output = ttnn.std(input_a, dim, memory_config)