#include <Stack.h>
|
| typedef std::pair< MatrixXd, VectorXd > | InitUnit |
Definition at line 125 of file Stack.h.
◆ InitUnit
◆ MaxoutLayer()
| lwtDev::MaxoutLayer::MaxoutLayer |
( |
const std::vector< InitUnit > & | maxout_tensor | ) |
|
Definition at line 217 of file Stack.cxx.
217 :
219 {
220 int out_pos = 0;
221 for (
const auto&
unit: units) {
224 out_pos++;
225 }
226 }
const PlainObject unit() const
This is a plugin that makes Eigen look like CLHEP & defines some convenience methods.
std::vector< MatrixXd > m_matrices
◆ compute()
| VectorXd lwtDev::MaxoutLayer::compute |
( |
const VectorXd & | in | ) |
const |
|
overridevirtual |
Implements lwtDev::ILayer.
Definition at line 227 of file Stack.cxx.
227 {
228
229
231 const size_t out_dim =
m_matrices.front().rows();
232 MatrixXd
outputs(n_mat, out_dim);
233 for (size_t mat_n = 0; mat_n < n_mat; mat_n++) {
235 }
237 return outputs.colwise().maxCoeff();
238 }
◆ m_bias
| MatrixXd lwtDev::MaxoutLayer::m_bias |
|
private |
◆ m_matrices
| std::vector<MatrixXd> lwtDev::MaxoutLayer::m_matrices |
|
private |
The documentation for this class was generated from the following files: