ceras
yet another deep learning engine
Public Types | Public Member Functions | Public Attributes | List of all members
ceras::ceras_private::session< Tsor > Struct Template Reference

#include <session.hpp>

Public Types

typedef place_holder< Tsor > place_holder_type
 
typedef variable< Tsor > variable_type
 
typedef variable_state< Tsor > variable_state_type
 

Public Member Functions

 session ()
 
 session (session const &)=delete
 
 session (session &&)=default
 
sessionoperator= (session const &)=delete
 
sessionoperator= (session &&)=default
 
void rebind (place_holder_type &p_holder, Tsor const &value)
 
void bind (place_holder_type &p_holder, Tsor const &value)
 
void remember (variable_type const &v)
 
template<typename Operation >
auto run (Operation &op) const
 
template<typename Operation >
void tap (Operation &op) const
 
void deserialize (std::string const &file_path)
 
void serialize (std::string const &file_path) const
 
void save (std::string const &file_path) const
 
void restore (std::string const &file_path)
 
void save_original (std::string const &file_path) const
 
void restore_original (std::string const &file_path)
 
 ~session ()
 

Public Attributes

std::vector< place_holder_typeplace_holders_
 
std::map< int, variable_typevariables_
 

Member Typedef Documentation

◆ place_holder_type

template<Tensor Tsor>
typedef place_holder<Tsor> ceras::ceras_private::session< Tsor >::place_holder_type

◆ variable_state_type

template<Tensor Tsor>
typedef variable_state<Tsor> ceras::ceras_private::session< Tsor >::variable_state_type

◆ variable_type

template<Tensor Tsor>
typedef variable<Tsor> ceras::ceras_private::session< Tsor >::variable_type

Constructor & Destructor Documentation

◆ session() [1/3]

template<Tensor Tsor>
ceras::ceras_private::session< Tsor >::session ( )
inline

◆ session() [2/3]

template<Tensor Tsor>
ceras::ceras_private::session< Tsor >::session ( session< Tsor > const &  )
delete

◆ session() [3/3]

template<Tensor Tsor>
ceras::ceras_private::session< Tsor >::session ( session< Tsor > &&  )
default

◆ ~session()

template<Tensor Tsor>
ceras::ceras_private::session< Tsor >::~session ( )
inline

Member Function Documentation

◆ bind()

template<Tensor Tsor>
void ceras::ceras_private::session< Tsor >::bind ( place_holder_type p_holder,
Tsor const &  value 
)
inline

◆ deserialize()

template<Tensor Tsor>
void ceras::ceras_private::session< Tsor >::deserialize ( std::string const &  file_path)
inline

◆ operator=() [1/2]

template<Tensor Tsor>
session& ceras::ceras_private::session< Tsor >::operator= ( session< Tsor > &&  )
default

◆ operator=() [2/2]

template<Tensor Tsor>
session& ceras::ceras_private::session< Tsor >::operator= ( session< Tsor > const &  )
delete

◆ rebind()

template<Tensor Tsor>
void ceras::ceras_private::session< Tsor >::rebind ( place_holder_type p_holder,
Tsor const &  value 
)
inline

◆ remember()

template<Tensor Tsor>
void ceras::ceras_private::session< Tsor >::remember ( variable_type const &  v)
inline

◆ restore()

template<Tensor Tsor>
void ceras::ceras_private::session< Tsor >::restore ( std::string const &  file_path)
inline

◆ restore_original()

template<Tensor Tsor>
void ceras::ceras_private::session< Tsor >::restore_original ( std::string const &  file_path)
inline

◆ run()

template<Tensor Tsor>
template<typename Operation >
auto ceras::ceras_private::session< Tsor >::run ( Operation &  op) const
inline

◆ save()

template<Tensor Tsor>
void ceras::ceras_private::session< Tsor >::save ( std::string const &  file_path) const
inline

◆ save_original()

template<Tensor Tsor>
void ceras::ceras_private::session< Tsor >::save_original ( std::string const &  file_path) const
inline

◆ serialize()

template<Tensor Tsor>
void ceras::ceras_private::session< Tsor >::serialize ( std::string const &  file_path) const
inline

◆ tap()

template<Tensor Tsor>
template<typename Operation >
void ceras::ceras_private::session< Tsor >::tap ( Operation &  op) const
inline

Member Data Documentation

◆ place_holders_

template<Tensor Tsor>
std::vector<place_holder_type> ceras::ceras_private::session< Tsor >::place_holders_

◆ variables_

template<Tensor Tsor>
std::map<int, variable_type> ceras::ceras_private::session< Tsor >::variables_

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