Go to the source code of this file.
Classes | |
class | magmadnn::op::DivOp< T > |
Enumerations | |
enum | div_op_t { TENSOR_DIV_TENSOR, SCALAR_DIV_TENSOR, TENSOR_DIV_SCALAR, VEC_DIV_SCALAR, SCALAR_DIV_VEC } |
Functions | |
template<typename T > | |
DivOp< T > * | magmadnn::op::div (Operation< T > *a, Operation< T > *b, bool copy, bool needs_grad) |
DivOp< T > * magmadnn::op::div | ( | Operation< T > * | a, |
Operation< T > * | b, | ||
bool | copy, | ||
bool | needs_grad | ||
) |
Divides tensor a by b. There are 3 cases:
If a and b do not have the same shape and neither are a scalar, then it is an error.
T | int float double |
a | tensor |
b | tensor |
copy | |
needs_grad |