int32

Creates a variable with the given shape and int32 elements.

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.

  1. Operation int32(size_t[] size, int[] defaultVal, string mod, size_t line)
    int32
    (
    size_t[] size = []
    ,
    int[] defaultVal = null
    ,
    string mod = __MODULE__
    ,
    size_t line = __LINE__
    )
  2. Operation int32(int defaultVal, string mod, size_t line)

Parameters

size size_t[]

The shape of the variable

defaultVal int[]

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

Return Value

Type: Operation

The newly created variable

Meta