Class MLPFactory

Nested Relationships

Nested Types

Inheritance Relationships

Base Type

Class Documentation

class MLPFactory : public marian::Factory

Multi-layer network factory.

Can hold layer factories. Used to accumulate options for later lazy construction.

Public Functions

Ptr<MLP> construct(Ptr<ExpressionGraph> graph)

Create a MLP container instance in the expression graph.

Used to accumulate options for later lazy construction.

Return

The shared pointer to the MLP container

Parameters
  • graph: The expression graph

template<class LF>
Accumulator<MLPFactory> push_back(const LF &lf)

Stack a layer to the mlp container.

Return

The Accumulator object holding the mlp container

Parameters
  • lf: The layer

Accumulator<MLPFactory> push_back(const Accumulator<OutputFactory> &lf)

Stack a mlp output layer to the mlp container.

Return

The Accumulator object holding the mlp container

Parameters
  • lf: The mlp output layer