Skip to main content

//clika-runtime/io.clika.runtime/Ops/full

full

[common]
fun full(shape: LongArray, fillValue: Tensor, dtype: DType, device: Placement? = null, pinnedFor: Placement? = null): Tensor

full(shape: LongArray, fillValue: Tensor, dtype: DType, device: Placement? = null, pinnedFor: Placement? = null): the full operator. A new tensor of the given shape with every element set to fill_value. Each shape extent is an int literal or a 0-D integer Tensor (traces symbolically). fill_value is a scalar literal or a tensor: a bool keeps Bool kind, an integer keeps its integer-ness across the boundary and stays exact past 2^53, and a tensor fills every element from its values (a 0-D tensor, or one broadcastable to shape), the same write as fill_ on an empty tensor in one kernel. Tensor::full is the literal-only form.

[common]
fun full(shape: LongArray, fillValue: Double, dtype: DType, device: Placement? = null, pinnedFor: Placement? = null): Tensor

full(shape: LongArray, fillValue: Double, dtype: DType, device: Placement? = null, pinnedFor: Placement? = null): the number form of full, fillValue as a scalar.