Skip to main content

//clika-runtime/io.clika.runtime/Ops/fill

fill

[common]
fun fill(input: Tensor, value: Tensor, device: Placement? = null): Tensor

fill(input: Tensor, value: Tensor, device: Placement? = null): the fill operator. A new tensor with input's shape and dtype, every element set to value. input supplies GEOMETRY only; its data is never read. value is a literal or a 0-D Tensor (a tensor value traces symbolically).

[common]
fun fill(input: Tensor, value: Double, device: Placement? = null): Tensor

fill(input: Tensor, value: Double, device: Placement? = null): the number form of fill, value as a scalar.