MagmaDNN  1.0
c++NeuralNetworkFramework
addop.h File Reference
#include <vector>
#include "compute/operation.h"
#include "tensor/tensor.h"
#include "geadd_internal.h"
Include dependency graph for addop.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  magmadnn::op::AddOp< T >
 

Functions

template<typename T >
AddOp< T > * magmadnn::op::add (Operation< T > *a, Operation< T > *b, bool copy, bool needs_grad)
 

Detailed Description

Author
Daniel Nichols
Version
1.0
Date
2019-02-18

Function Documentation

◆ add()

template<typename T >
AddOp< T > * magmadnn::op::add ( Operation< T > *  a,
Operation< T > *  b,
bool  copy = true,
bool  needs_grad = true 
)

Returns a new add operation (

See also
AddOp<T>).
Template Parameters
T
Parameters
a
b
copyIf copy is true then it returns a new tensor, if false then b=a+b.
Returns
AddOp<T>*