int32 - multiple declarations

Function int32

Creates a variable with the given shape and int32 elements.

Operation int32 (
  ulong[] size = [],
  int[] defaultVal = null,
  string mod = __MODULE__,
  ulong line = cast(ulong)__LINE__
);

If no default value is provided, then the variable will have a default value of all zeros. The default value is stored in the attributes["default"] field of the returned operation.

Parameters

NameDescription
size The shape of the variable
defaultVal The default value of the variable. The array should store the elements in row major order.

Returns

The newly created variable

Function int32

Operation int32 (
  int defaultVal,
  string mod = __MODULE__,
  ulong line = cast(ulong)__LINE__
);