onesLike

fun onesLike(structureND: StructureND<*>): DoubleTensor(source)

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

Return

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