Skip to main content

//clika-runtime/io.clika.runtime/Ops/zeros

zeros

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

zeros(shape: LongArray, dtype: DType, device: Placement? = null, pinnedFor: Placement? = null): the zeros operator. A new tensor of the given shape with every element set to zero. Same shape-span and pinned_for contract as empty (extents are literals or 0-D integer Tensors).