ttnn.fill_ones_rm

ttnn.fill_ones_rm = Operation(python_fully_qualified_name='ttnn.fill_ones_rm', function=<ttnn._ttnn.operations.data_movement.fill_ones_rm_t object>, preprocess_golden_function_inputs=<function default_preprocess_golden_function_inputs>, golden_function=None, postprocess_golden_function_outputs=<function default_postprocess_golden_function_outputs>, is_cpp_operation=True, is_experimental=False)

Same as fill_rm, but val_hi is set to 1 and val_lo is 0.

Argument

Description

Data type

Valid range

Required

N

Batch count of output tensor

int

N > 0

Yes

C

Channel count of output tensor

int

C > 0

Yes

H

Height count of output tensor

int

H > 0

Yes

W

Width count of output tensor

int

W > 0

Yes

hOnes

Height of high values region

int

hOnes <= H

Yes

wOnes

Width of high values region

int

wOnes <= W

Yes

any

Any input tensor with desired device and data types for output tensor

tt_lib.tensor.Tensor

Yes

Parameters:
  • N (number) – Batch count of output tensor.

  • C (number) – Channel count of output tensor.

  • H (number) – Height count of output tensor.

  • W (number) – Width count of output tensor.

  • hOnes (number) – Height of high values region.

  • wOnes (number) – Width of high values region.

  • any (ttnn.tensor) – Any input tensor with desired device and data types for output tensor. value greater than 0

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

  • queue_id (int, optional) – command queue id. Defaults to 0.

Returns:

ttnn.Tensor – the output tensor.