float32Constant

Creates a constant with the given shape and float32 values.

float32Constant
(
size_t[] size
,
float[] val
,
string mod = __MODULE__
,
size_t line = __LINE__
)

Parameters

size
Type: size_t[]

The shape of the constant

val
Type: float[]

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

Return Value

Type: Operation

The newly created constant

Meta