Tenncor
Namespaces | Typedefs | Functions
init.hpp File Reference
#include "eteq/variable.hpp"
#include "eteq/random.hpp"
Include dependency graph for init.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 layr
 

Typedefs

template<typename T >
using layr::InitF = std::function< eteq::VarptrT< T >(teq::Shape, std::string)>
 Function that produces a variable given the variable's shape and label. More...
 
template<typename T >
using layr::ShapeFactorF = std::function< T(teq::Shape)>
 Function that returns some metric of a shape. More...
 

Functions

template<typename T >
layr::fanio (teq::Shape shape)
 Return the sum of the first 2 dimensions of a shape. More...
 
template<typename T >
layr::fanavg (teq::Shape shape)
 Return the mean of the first 2 dimensions of a shape. More...
 
template<typename T >
void layr::truncated_normal (std::vector< T > &out, teq::Shape shape, T mean, T stdev, size_t max_repick=5)
 
template<typename T >
InitF< T > layr::zero_init (void)
 Return initialization function that makes zero variables. More...
 
template<typename T >
InitF< T > layr::variance_scaling_init (T factor, ShapeFactorF< T > sfactor=fanavg< T >)
 
template<typename T >
InitF< T > layr::unif_xavier_init (T factor=1)
 
template<typename T >
InitF< T > layr::norm_xavier_init (T factor=1)