Dragon - C++ API
A Computation Graph Virtual Machine Based Deep Learning Framework
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
dragon::GradientMakerBase Class Reference

#include <operator_gradient.h>

Inheritance diagram for dragon::GradientMakerBase:
dragon::NoGradient

Public Member Functions

 GradientMakerBase (const OperatorDef &def, const vector< string > &g_outputs)
 
virtual ~GradientMakerBase ()
 
virtual bool CopyDeviceOption () const
 
virtual bool CopyEngine () const
 
virtual bool CopyArguments () const
 
virtual Gradient Make ()
 
virtual vector< OperatorDef > MakeDef ()
 
virtual vector< float > defaults ()
 
const string I (const int i) const
 
const string O (const int i) const
 
string GI (const int i)
 
const string GO (const int i) const
 

Static Public Member Functions

template<class... Args>
static vector< OperatorDef > SingleDef (const Args &... args)
 

Protected Attributes

const OperatorDef & def
 
vector< string > g_inputs_
 
const vector< string > & g_outputs_
 

Constructor & Destructor Documentation

◆ GradientMakerBase()

dragon::GradientMakerBase::GradientMakerBase ( const OperatorDef &  def,
const vector< string > &  g_outputs 
)
inline

◆ ~GradientMakerBase()

virtual dragon::GradientMakerBase::~GradientMakerBase ( )
inlinevirtual

Member Function Documentation

◆ CopyArguments()

virtual bool dragon::GradientMakerBase::CopyArguments ( ) const
inlinevirtual

◆ CopyDeviceOption()

virtual bool dragon::GradientMakerBase::CopyDeviceOption ( ) const
inlinevirtual

◆ CopyEngine()

virtual bool dragon::GradientMakerBase::CopyEngine ( ) const
inlinevirtual

◆ defaults()

virtual vector<float> dragon::GradientMakerBase::defaults ( )
inlinevirtual

◆ GI()

string dragon::GradientMakerBase::GI ( const int  i)
inline

◆ GO()

const string dragon::GradientMakerBase::GO ( const int  i) const
inline

◆ I()

const string dragon::GradientMakerBase::I ( const int  i) const
inline

◆ Make()

virtual Gradient dragon::GradientMakerBase::Make ( )
inlinevirtual

◆ MakeDef()

virtual vector<OperatorDef> dragon::GradientMakerBase::MakeDef ( )
inlinevirtual

Reimplemented in dragon::NoGradient.

◆ O()

const string dragon::GradientMakerBase::O ( const int  i) const
inline

◆ SingleDef()

template<class... Args>
static vector<OperatorDef> dragon::GradientMakerBase::SingleDef ( const Args &...  args)
inlinestatic

Member Data Documentation

◆ def

const OperatorDef& dragon::GradientMakerBase::def
protected

◆ g_inputs_

vector<string> dragon::GradientMakerBase::g_inputs_
protected

◆ g_outputs_

const vector<string>& dragon::GradientMakerBase::g_outputs_
protected

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