onesLike

fun onesLike(structureND: Tensor<*>): IntTensor(source)

Returns a tensor filled with the scalar value 1, with the same shape as a given array.

Return

tensor filled with the scalar value 1, with the same shape as input tensor.