triton.experimental.gluon.language.full_like

triton.experimental.gluon.language.full_like(input, value, shape=None, dtype=None, layout=None)

Create a tensor with the same properties as a given tensor, filled with a specified value.

Parameters:
  • input (tensor) – Reference tensor to infer default shape, dtype, and layout.

  • value (int or float) – The fill value.

  • shape (Sequence[int], optional) – Target shape. Defaults to input.shape.

  • dtype (dtype, optional) – Target data type. Defaults to input.dtype.

  • layout (DistributedLayout, optional) – Target layout. Defaults to input.layout.

Returns:

A tensor where every element equals value.

Return type:

tensor