#include <Stack.h>
Definition at line 195 of file Stack.h.
◆ ReductionStack() [1/2]
| lwtDev::ReductionStack::ReductionStack |
( |
size_t | n_in, |
|
|
const std::vector< LayerConfig > & | layers ) |
Definition at line 396 of file Stack.cxx.
397 {
398 std::vector<LayerConfig> recurrent;
399 std::vector<LayerConfig> feed_forward;
400 std::set<Architecture> recurrent_arcs{
402 for (const auto& layer: layers) {
403 if (recurrent_arcs.count(
layer.architecture)) {
404 recurrent.push_back(layer);
405 } else {
406 feed_forward.push_back(layer);
407 }
408 }
411 }
RecurrentStack * m_recurrent
◆ ~ReductionStack()
| lwtDev::ReductionStack::~ReductionStack |
( |
| ) |
|
◆ ReductionStack() [2/2]
◆ n_outputs()
| size_t lwtDev::ReductionStack::n_outputs |
( |
| ) |
const |
◆ operator=()
◆ reduce()
| VectorXd lwtDev::ReductionStack::reduce |
( |
MatrixXd | inputs | ) |
const |
Definition at line 416 of file Stack.cxx.
416 {
418 return m_stack->compute(in.col(in.cols() -1));
419 }
◆ m_recurrent
◆ m_stack
| Stack* lwtDev::ReductionStack::m_stack |
|
private |
The documentation for this class was generated from the following files: