Nabla  1.0
Nabla - a DSL for Automatic differentiation
Public Member Functions | Public Attributes | List of all members
Sub Class Reference

#include <Operators.h>

Inheritance diagram for Sub:
Inheritance graph
[legend]
Collaboration diagram for Sub:
Collaboration graph
[legend]

Public Member Functions

void backward ()
 
 Sub (Node *a, Node *b, int count)
 
Nodeforward (const Node *a, const Node *b)
 
- Public Member Functions inherited from Operator
 Operator ()
 
- Public Member Functions inherited from Node
 Node ()
 
virtual ~Node ()=default
 
void print ()
 
 Node ()
 
 Node (Tensor &data)
 
Nodeforward (const Node &a, const Node &b)
 

Public Attributes

int sub_count
 
- Public Attributes inherited from Node
std::string name
 
bool is_visited = false
 
bool is_scalar = false
 
std::vector< Node * > inputs
 
Tensor data
 
double ddata
 
Tensor gradient
 
double scalar_gradient = 0
 

Constructor & Destructor Documentation

◆ Sub()

Sub::Sub ( Node a,
Node b,
int  count 
)

Member Function Documentation

◆ backward()

void Sub::backward ( )
virtual

Reimplemented from Operator.

◆ forward()

Node * Sub::forward ( const Node a,
const Node b 
)

Member Data Documentation

◆ sub_count

int Sub::sub_count

The documentation for this class was generated from the following files: