Module dopt.core.ops.basic
Contains functions for creating variable nodes and subsequently manipulating their shapes.
Functions
Name | Description |
---|---|
constant(type, val, mod, line) | Creates a constant with the given type. |
float32(size, defaultVal, mod, line) | Creates a variable with the given shape and float32 elements. |
float32(defaultVal, mod, line) | |
float32Constant(size, val, mod, line) | Creates a constant with the given shape and float32 values. |
float32Constant(val, mod, line) | |
int32(size, defaultVal, mod, line) | Creates a variable with the given shape and int32 elements. |
int32(defaultVal, mod, line) | |
int32Constant(size, val, mod, line) | Creates a constant with the given shape and int32 values. |
int32Constant(val, mod, line) | |
pad(input, before, after, mod, line) | Pads the result of an operation with zeros in each dimension. |
repeat(input, repetitions, mod, line) | Repeats the output of an operation along each axis the given number of times. |
repeat(input, repetitions, mod, line) | Repeats the output of an operation the given number of times. |
reshape(input, shape, mod, line) | Allows one to cast an operation to a different shape with the same volume. |
slice(input, start, stop, mod, line) | Slices the result of an operation. |
transpose(input, order, mod, line) | Reorders the dimensions of output of an operation. |
variable(type, defaultVal, mod, line) | Creates a variable with the given type. |