Basic
Description
Basic mathematical operations
Sub
Description
Pixel-wise substruction A - B
Params
| tA | Tensor | The first input |
| tB | Tensor | The second input |
Example
gm.sub(A, B);Add
Description
Pixel-wise sum A + B
Params
| tA | Tensor | The first input |
| tB | Tensor | The second input |
Example
gm.add(A, B);Div
Description
Pixel-wise divide A / B
Params
| tA | Tensor | The first input |
| tB | Tensor | The second input |
Example
gm.div(A, B);Mult
Description
Pixel-wise muliply A * B
Params
| tA | Tensor | The first input |
| tB | Tensor | The second input |
Example
gm.mult(A, B);SubScalar
Description
A - scalar
Params
| tA | Tensor | Input |
| scalar | number | Scalar |
Example
gm.subScalar(A, 0.5);AddScalar
Description
A + scalar
Params
| tA | Tensor | Input |
| scalar | number | Scalar |
Example
gm.addScalar(A, 0.5);DivScalar
Description
A / scalar
Params
| tA | Tensor | Input |
| scalar | number | Scalar |
Example
gm.divScalar(A, 0.5);MultScalar
Description
A * scalar
Params
| tA | Tensor | Input |
| scalar | number | Scalar |
Example
gm.multScalar(A, 0.5);