nnlib
GPU-accelerated, C/C++ neural network library.
Public Member Functions | Private Attributes | List of all members
MulConstant Class Reference
Inheritance diagram for MulConstant:
Function< sTensor, float > BackwardFunction

Public Member Functions

sTensor forwardFn (const sTensor &a, const float &b) override
 
std::vector< sTensor > backwardFn (sTensor grad) override
 
- Public Member Functions inherited from Function< sTensor, float >
sTensor forward (const Types &... args)
 
std::vector< sTensor > backward (sTensor grad) override
 
virtual sTensor forwardFn (const Types &... args)=0
 

Private Attributes

float constantCache
 

Additional Inherited Members

- Public Attributes inherited from BackwardFunction
std::vector< sTensor > parents
 

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