float32Constant - multiple declarations

Function float32Constant

Creates a constant with the given shape and float32 values.

Operation float32Constant (
  ulong[] size,
  float[] val,
  string mod = __MODULE__,
  ulong line = cast(ulong)__LINE__
);

Parameters

NameDescription
size The shape of the constant
val The value of the constant. The array should store the elements in row major order.

Returns

The newly created constant

Function float32Constant

Operation float32Constant (
  float val,
  string mod = __MODULE__,
  ulong line = cast(ulong)__LINE__
);