ceras
yet another deep learning engine
Namespaces | Functions
layer.hpp File Reference
#include "./operation.hpp"
#include "./activation.hpp"
#include "./loss.hpp"
#include "./optimizer.hpp"
#include "./utils/better_assert.hpp"

Go to the source code of this file.

Namespaces

 ceras
 

Functions

auto ceras::Input ()
 
auto ceras::Conv2D (unsigned long output_channels, std::vector< unsigned long > const &kernel_size, std::vector< unsigned long > const &input_shape, std::string const &padding="valid", std::vector< unsigned long > const &strides={1, 1}, std::vector< unsigned long > const &dilations={1, 1}, bool use_bias=true, float kernel_regularizer_l1=0.0f, float kernel_regularizer_l2=0.0f, float bias_regularizer_l1=0.0f, float bias_regularizer_l2=0.0f)
 2D convolution layer. More...
 
auto ceras::Dense (unsigned long output_size, unsigned long input_size, bool use_bias=true, float kernel_regularizer_l1=0.0f, float kernel_regularizer_l2=0.0f, float bias_regularizer_l1=0.0f, float bias_regularizer_l2=0.0f)
 Densly-connected layer. More...
 
auto ceras::BatchNormalization (std::vector< unsigned long > const &shape, float threshold=0.95f, float kernel_regularizer_l1=0.0f, float kernel_regularizer_l2=0.0f, float bias_regularizer_l1=0.0f, float bias_regularizer_l2=0.0f)
 Applies a transformation that maintains the mean output close to 0 and the output standard deviation close to 1. More...
 
auto ceras::BatchNormalization (float threshold, std::vector< unsigned long > const &shape, float kernel_regularizer_l1=0.0f, float kernel_regularizer_l2=0.0f, float bias_regularizer_l1=0.0f, float bias_regularizer_l2=0.0f)
 
auto ceras::Concatenate (unsigned long axis=-1) noexcept
 
auto ceras::Add () noexcept
 
auto ceras::Subtract () noexcept
 
auto ceras::Multiply () noexcept
 
template<Expression Ex>
auto ceras::ReLU (Ex const &ex) noexcept
 
auto ceras::Softmax () noexcept
 
template<typename T = float>
auto ceras::LeakyReLU (T const factor=0.2) noexcept
 
template<typename T = float>
auto ceras::ELU (T const factor=0.2) noexcept
 
auto ceras::Reshape (std::vector< unsigned long > const &new_shape, bool include_batch_flag=true) noexcept
 
auto ceras::Flatten () noexcept
 
auto ceras::MaxPooling2D (unsigned long stride) noexcept
 
auto ceras::UpSampling2D (unsigned long stride) noexcept
 
template<typename T >
auto ceras::Dropout (T factor) noexcept
 
auto ceras::AveragePooling2D (unsigned long stride) noexcept