constant

Creates a constant with the given type.

constant
(,
void[] val
,
string mod = __MODULE__
,
size_t line = __LINE__
)

Parameters

type TensorType

The type of the constant

val void[]

The value of the constant. The array should store the elements in row major order.

Return Value

Type: Operation

The newly created constant

Meta