Struct LayerFactory

Inheritance Relationships

Base Type

Derived Type

Struct Documentation

struct LayerFactory : public marian::Factory

Base class for layer factories, can be used in a multi-layer network factory.

Subclassed by marian::mlp::DenseFactory

Public Functions

virtual Ptr<IUnaryLayer> construct(Ptr<ExpressionGraph> graph) = 0

Construct a layer instance in a given graph.


a shared pointer to the layer object

  • graph: a shared pointer a graph