Struct LayerFactory¶
Defined in File constructors.h
Inheritance Relationships¶
Base Type¶
public marian::Factory
(Class Factory)
Derived Type¶
public marian::mlp::DenseFactory
(Class DenseFactory)
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.
- Return
a shared pointer to the layer object
- Parameters
graph
: a shared pointer a graph
-
virtual Ptr<IUnaryLayer>