FlexNN 1
Fully connected neural network built from scratch with flexible n-layer design and multiple activations.
Loading...
Searching...
No Matches
Dense.cpp File Reference

Implements FlexNN::Layers::Dense forward/backward/update. More...

#include "layers/Dense.hpp"
#include <cassert>
#include "activations/detail.hpp"
Include dependency graph for Dense.cpp:

Namespaces

namespace  FlexNN
 Namespace for the FlexNN neural network library.
 
namespace  FlexNN::Layers
 

Detailed Description

Implements FlexNN::Layers::Dense forward/backward/update.

Forward uses Activations::detail::forward for the activation step so per-activation logic is tested once in tests/activation_test.cpp. Backward uses Activations::detail::backward which for Softmax hidden applies J = diag(s)-s s^T via softmax_backward_hidden.