constant

Creates a constant with the given type.

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

Parameters

type

The type of the constant

val
Type: 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