#include <Stack.h>
|
| | HighwayLayer (const MatrixXd &W, const VectorXd &b, const MatrixXd &W_carry, const VectorXd &b_carry, ActivationConfig activation) |
| virtual VectorXd | compute (const VectorXd &) const override |
Definition at line 153 of file Stack.h.
◆ HighwayLayer()
| lwtDev::HighwayLayer::HighwayLayer |
( |
const MatrixXd & | W, |
|
|
const VectorXd & | b, |
|
|
const MatrixXd & | W_carry, |
|
|
const VectorXd & | b_carry, |
|
|
ActivationConfig | activation ) |
Definition at line 252 of file Stack.cxx.
256 :
259 {
260 }
std::function< double(double)> m_act
std::function< double(double)> get_activation(lwtDev::ActivationConfig act)
◆ compute()
| VectorXd lwtDev::HighwayLayer::compute |
( |
const VectorXd & | in | ) |
const |
|
overridevirtual |
Implements lwtDev::ILayer.
Definition at line 261 of file Stack.cxx.
261 {
265 return c *
t + (1 -
c) * in.array();
266 }
double nn_sigmoid(double x)
◆ m_act
| std::function<double(double)> lwtDev::HighwayLayer::m_act |
|
private |
◆ m_b_c
| VectorXd lwtDev::HighwayLayer::m_b_c |
|
private |
◆ m_b_t
| VectorXd lwtDev::HighwayLayer::m_b_t |
|
private |
◆ m_w_c
| MatrixXd lwtDev::HighwayLayer::m_w_c |
|
private |
◆ m_w_t
| MatrixXd lwtDev::HighwayLayer::m_w_t |
|
private |
The documentation for this class was generated from the following files: