full

fun full(ctx: ExecutionContext, shape: IntArray, dtype: DType, value: Number): Tensor<*, *>(source)

Creates a tensor filled with a constant value.

Return

A new constant-filled tensor.

Parameters

ctx

The execution context.

shape

The tensor dimensions.

dtype

The data type.

value

The fill value.