ttnn.is_real

ttnn.is_real = FastOperation(python_fully_qualified_name='ttnn.is_real', function=<ttnn._ttnn.operations.complex_unary.is_real_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)

Returns boolean tensor if value of input_tensor is real.

Args:

input_tensor (ComplexTensor): the input tensor.

Keyword args:

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

Returns:

ttnn.Tensor: the output tensor.

Example:
>>> tensor = ttnn.to_device(ttnn.from_torch(torch.tensor((0, 1), dtype=torch.bfloat16)), device=device)
>>> output = ttnn.is_real(tensor)