//clika-runtime/io.clika.runtime/Ops/ones
ones
[common]
fun ones(shape: LongArray, dtype: DType, device: Placement? = null, pinnedFor: Placement? = null): Tensor
ones(shape: LongArray, dtype: DType, device: Placement? = null, pinnedFor: Placement? = null): the ones operator. A new tensor of the given shape with every element set to one. Same shape-span and pinned_for contract as empty (extents are literals or 0-D integer Tensors).