int32Constant - multiple declarations

Function int32Constant

Creates a constant with the given shape and int32 values.

Operation int32Constant (
  ulong[] size,
  int[] 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 int32Constant

Operation int32Constant (
  int val,
  string mod = __MODULE__,
  ulong line = cast(ulong)__LINE__
);