full

fun full(value: Int, shape: ShapeND): IntTensor(source)

Creates a tensor of a given shape and fills all elements with a given value.

Return

tensor with the shape shape and filled with value.

Parameters

value

the value to fill the output tensor with.

shape

array of integers defining the shape of the output tensor.