float32Constant

Creates a constant with the given shape and float32 values.

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

Parameters

size size_t[]

The shape of the constant

val 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