- constant
Operation constant(TensorType type, void[] val, string mod = __MODULE__, size_t line = __LINE__)
Creates a constant with the given type.
- float32
Operation float32(size_t[] size = [], float[] defaultVal = null, string mod = __MODULE__, size_t line = __LINE__)
Creates a variable with the given shape and float32 elements.
- float32Constant
Operation float32Constant(size_t[] size, float[] val, string mod = __MODULE__, size_t line = __LINE__)
Creates a constant with the given shape and float32 values.
- int32
Operation int32(size_t[] size = [], int[] defaultVal = null, string mod = __MODULE__, size_t line = __LINE__)
Creates a variable with the given shape and int32 elements.
- int32Constant
Operation int32Constant(size_t[] size, int[] val, string mod = __MODULE__, size_t line = __LINE__)
Creates a constant with the given shape and int32 values.
- pad
Operation pad(Operation input, size_t[] before, size_t[] after, string mod = __MODULE__, size_t line = __LINE__)
Pads the result of an operation with zeros in each dimension.
- repeat
Operation repeat(Operation input, size_t[] repetitions, string mod = __MODULE__, size_t line = __LINE__)
Repeats the output of an operation along each axis the given number of times.
- repeat
Operation repeat(Operation input, size_t repetitions, string mod = __MODULE__, size_t line = __LINE__)
Repeats the output of an operation the given number of times.
- reshape
Operation reshape(Operation input, size_t[] shape, string mod = __MODULE__, size_t line = __LINE__)
Allows one to cast an operation to a different shape with the same volume.
- slice
Operation slice(Operation input, size_t[] start, size_t[] stop, string mod = __MODULE__, size_t line = __LINE__)
Slices the result of an operation.
- transpose
Operation transpose(Operation input, size_t[] order, string mod = __MODULE__, size_t line = __LINE__)
Reorders the dimensions of output of an operation.
- variable
Operation variable(TensorType type, void[] defaultVal = null, string mod = __MODULE__, size_t line = __LINE__)
Creates a variable with the given type.
Contains functions for creating variable nodes and subsequently manipulating their shapes.