dopt.core.ops.basic

Contains functions for creating variable nodes and subsequently manipulating their shapes.

Members

Functions

constant
Operation constant(TensorType type, void[] val, string mod, size_t line)

Creates a constant with the given type.

float32
Operation float32(size_t[] size, float[] defaultVal, string mod, size_t line)

Creates a variable with the given shape and float32 elements.

float32
Operation float32(float defaultVal, string mod, size_t line)
float32Constant
Operation float32Constant(size_t[] size, float[] val, string mod, size_t line)

Creates a constant with the given shape and float32 values.

float32Constant
Operation float32Constant(float val, string mod, size_t line)
initialize
void initialize()
Undocumented in source. Be warned that the author may not have intended to support it.
int32
Operation int32(size_t[] size, int[] defaultVal, string mod, size_t line)

Creates a variable with the given shape and int32 elements.

int32
Operation int32(int defaultVal, string mod, size_t line)
int32Constant
Operation int32Constant(size_t[] size, int[] val, string mod, size_t line)

Creates a constant with the given shape and int32 values.

int32Constant
Operation int32Constant(int val, string mod, size_t line)
pad
Operation pad(Operation input, size_t[] before, size_t[] after, string mod, size_t line)

Pads the result of an operation with zeros in each dimension.

repeat
Operation repeat(Operation input, size_t[] repetitions, string mod, size_t 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, size_t line)

Repeats the output of an operation the given number of times.

reshape
Operation reshape(Operation input, size_t[] shape, string mod, size_t 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, size_t line)

Slices the result of an operation.

transpose
Operation transpose(Operation input, size_t[] order, string mod, size_t line)

Reorders the dimensions of output of an operation.

variable
Operation variable(TensorType type, void[] defaultVal, string mod, size_t line)

Creates a variable with the given type.

Meta

Authors

Henry Gouk