![]() |
ceras
yet another deep learning engine
|
#include <variable.hpp>
Public Types | |
| typedef Tsor | tensor_type |
| typedef tensor_type::value_type | value_type |
Public Member Functions | |
| variable (tensor_type const &data, value_type l1=value_type{0}, value_type l2=value_type{0}, bool trainable=true) | |
| variable ()=delete | |
| variable (variable const &other)=default | |
| variable (variable &&)=default | |
| variable & | operator= (variable &&)=default |
| variable & | operator= (variable const &other)=default |
| tensor_type const | forward () noexcept |
| void | backward (auto const &grad) noexcept |
| std::vector< std::size_t > | shape () const noexcept |
| std::vector< tensor_type > & | contexts () |
| std::vector< tensor_type > | contexts () const |
| tensor_type & | data () |
| tensor_type | data () const |
| tensor_type & | gradient () |
| tensor_type | gradient () const |
| void | reset () |
| bool | trainable () const noexcept |
| void | trainable (bool t) |
Public Attributes | |
| std::shared_ptr< variable_state< tensor_type > > | state_ |
| regularizer< value_type > | regularizer_ |
| bool | trainable_ |
| typedef Tsor ceras::variable< Tsor >::tensor_type |
| typedef tensor_type::value_type ceras::variable< Tsor >::value_type |
|
inline |
|
delete |
|
default |
|
default |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
|
inline |
|
inline |
|
default |
|
default |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
| regularizer<value_type> ceras::variable< Tsor >::regularizer_ |
| std::shared_ptr<variable_state<tensor_type> > ceras::variable< Tsor >::state_ |
| bool ceras::variable< Tsor >::trainable_ |