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

#include <operation.hpp>

Inheritance diagram for ceras::unary_operator< Operator, Forward_Action, Backward_Action >:

Public Member Functions

 unary_operator (Operator const &op, Forward_Action const &forward_action, Backward_Action const &backward_action) noexcept
 
auto forward ()
 
void backward (tensor_type const &grad)
 

Public Attributes

Operator op_
 
Forward_Action forward_action_
 
Backward_Action backward_action_
 
decltype(std::declval< Forward_Action >()(std::declval< decltype(op_)>().forward())) typedef tensor_type
 
tensor_type input_data_
 
tensor_type output_data_
 

Constructor & Destructor Documentation

◆ unary_operator()

template<typename Operator , typename Forward_Action , typename Backward_Action >
ceras::unary_operator< Operator, Forward_Action, Backward_Action >::unary_operator ( Operator const &  op,
Forward_Action const &  forward_action,
Backward_Action const &  backward_action 
)
inlinenoexcept

Member Function Documentation

◆ backward()

template<typename Operator , typename Forward_Action , typename Backward_Action >
void ceras::unary_operator< Operator, Forward_Action, Backward_Action >::backward ( tensor_type const &  grad)
inline

◆ forward()

template<typename Operator , typename Forward_Action , typename Backward_Action >
auto ceras::unary_operator< Operator, Forward_Action, Backward_Action >::forward ( )
inline

Member Data Documentation

◆ backward_action_

template<typename Operator , typename Forward_Action , typename Backward_Action >
Backward_Action ceras::unary_operator< Operator, Forward_Action, Backward_Action >::backward_action_

◆ forward_action_

template<typename Operator , typename Forward_Action , typename Backward_Action >
Forward_Action ceras::unary_operator< Operator, Forward_Action, Backward_Action >::forward_action_

◆ input_data_

template<typename Operator , typename Forward_Action , typename Backward_Action >
tensor_type ceras::unary_operator< Operator, Forward_Action, Backward_Action >::input_data_

◆ op_

template<typename Operator , typename Forward_Action , typename Backward_Action >
Operator ceras::unary_operator< Operator, Forward_Action, Backward_Action >::op_

◆ output_data_

template<typename Operator , typename Forward_Action , typename Backward_Action >
tensor_type ceras::unary_operator< Operator, Forward_Action, Backward_Action >::output_data_

◆ tensor_type

template<typename Operator , typename Forward_Action , typename Backward_Action >
decltype( std::declval<Forward_Action>()( std::declval<decltype(op_)>().forward() ) ) typedef ceras::unary_operator< Operator, Forward_Action, Backward_Action >::tensor_type

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