ceras
yet another deep learning engine
Public Types | Public Member Functions | Public Attributes | List of all members
ceras::binary_operator< Lhs_Operator, Rhs_Operator, Forward_Action, Backward_Action > Struct Template Reference

#include <operation.hpp>

Inheritance diagram for ceras::binary_operator< Lhs_Operator, Rhs_Operator, Forward_Action, Backward_Action >:

Public Types

typedef tensor_deduction< Lhs_Operator, Rhs_Operator >::tensor_type tensor_type
 

Public Member Functions

 binary_operator (Lhs_Operator const &lhs_op, Rhs_Operator const &rhs_op, Forward_Action const &forward_action, Backward_Action const &backward_action) noexcept
 
auto forward ()
 
void backward (tensor_type const &grad)
 

Public Attributes

Lhs_Operator lhs_op_
 
Rhs_Operator rhs_op_
 
Forward_Action forward_action_
 
Backward_Action backward_action_
 
tensor_type lhs_input_data_
 
tensor_type rhs_input_data_
 
tensor_type output_data_
 

Member Typedef Documentation

◆ tensor_type

template<typename Lhs_Operator , typename Rhs_Operator , typename Forward_Action , typename Backward_Action >
typedef tensor_deduction<Lhs_Operator, Rhs_Operator>::tensor_type ceras::binary_operator< Lhs_Operator, Rhs_Operator, Forward_Action, Backward_Action >::tensor_type

Constructor & Destructor Documentation

◆ binary_operator()

template<typename Lhs_Operator , typename Rhs_Operator , typename Forward_Action , typename Backward_Action >
ceras::binary_operator< Lhs_Operator, Rhs_Operator, Forward_Action, Backward_Action >::binary_operator ( Lhs_Operator const &  lhs_op,
Rhs_Operator const &  rhs_op,
Forward_Action const &  forward_action,
Backward_Action const &  backward_action 
)
inlinenoexcept

Member Function Documentation

◆ backward()

template<typename Lhs_Operator , typename Rhs_Operator , typename Forward_Action , typename Backward_Action >
void ceras::binary_operator< Lhs_Operator, Rhs_Operator, Forward_Action, Backward_Action >::backward ( tensor_type const &  grad)
inline

◆ forward()

template<typename Lhs_Operator , typename Rhs_Operator , typename Forward_Action , typename Backward_Action >
auto ceras::binary_operator< Lhs_Operator, Rhs_Operator, Forward_Action, Backward_Action >::forward ( )
inline

Member Data Documentation

◆ backward_action_

template<typename Lhs_Operator , typename Rhs_Operator , typename Forward_Action , typename Backward_Action >
Backward_Action ceras::binary_operator< Lhs_Operator, Rhs_Operator, Forward_Action, Backward_Action >::backward_action_

◆ forward_action_

template<typename Lhs_Operator , typename Rhs_Operator , typename Forward_Action , typename Backward_Action >
Forward_Action ceras::binary_operator< Lhs_Operator, Rhs_Operator, Forward_Action, Backward_Action >::forward_action_

◆ lhs_input_data_

template<typename Lhs_Operator , typename Rhs_Operator , typename Forward_Action , typename Backward_Action >
tensor_type ceras::binary_operator< Lhs_Operator, Rhs_Operator, Forward_Action, Backward_Action >::lhs_input_data_

◆ lhs_op_

template<typename Lhs_Operator , typename Rhs_Operator , typename Forward_Action , typename Backward_Action >
Lhs_Operator ceras::binary_operator< Lhs_Operator, Rhs_Operator, Forward_Action, Backward_Action >::lhs_op_

◆ output_data_

template<typename Lhs_Operator , typename Rhs_Operator , typename Forward_Action , typename Backward_Action >
tensor_type ceras::binary_operator< Lhs_Operator, Rhs_Operator, Forward_Action, Backward_Action >::output_data_

◆ rhs_input_data_

template<typename Lhs_Operator , typename Rhs_Operator , typename Forward_Action , typename Backward_Action >
tensor_type ceras::binary_operator< Lhs_Operator, Rhs_Operator, Forward_Action, Backward_Action >::rhs_input_data_

◆ rhs_op_

template<typename Lhs_Operator , typename Rhs_Operator , typename Forward_Action , typename Backward_Action >
Rhs_Operator ceras::binary_operator< Lhs_Operator, Rhs_Operator, Forward_Action, Backward_Action >::rhs_op_

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