int32Constant

Creates a constant with the given shape and int32 values.

int32Constant
(
size_t[] size
,
int[] val
,
string mod = __MODULE__
,
size_t line = __LINE__
)

Parameters

size
Type: size_t[]

The shape of the constant

val
Type: int[]

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

Return Value

Type: Operation

The newly created constant

Meta