LBANN  0.103.0
LivermoreBigArtificialNeuralNetworkToolkit
operator_factory_impl.hpp File Reference
Include dependency graph for operator_factory_impl.hpp:

Go to the source code of this file.

Namespaces

 lbann
 
 lbann::proto
 
 lbann::proto::details
 

Macros

#define LBANN_REGISTER_BUILDER(OP_NAME, OP_LOWER)
 
#define PROTO_DEVICE(T, DEVICE)
 

Functions

template<typename InT , typename OutT , El::Device D>
OperatorFactory< InT, OutT, D > lbann::proto::details::build_default_factory ()
 
 lbann::PROTO (float)
 
 lbann::PROTO (double)
 

Macro Definition Documentation

◆ LBANN_REGISTER_BUILDER

#define LBANN_REGISTER_BUILDER (   OP_NAME,
  OP_LOWER 
)
Value:
factory.register_builder(#OP_NAME "Operator", \
build_##OP_LOWER##_operator<InT, D>)

◆ PROTO_DEVICE

#define PROTO_DEVICE (   T,
  DEVICE 
)
Value:
extern template proto::OperatorFactory<T, T, DEVICE>& \
extern template std::unique_ptr<Operator<T, T, DEVICE>> \
proto::construct_operator(lbann_data::Operator const& msg)
auto construct_operator(const lbann_data::Operator &proto_operator) -> std::unique_ptr< Operator< InputT, OutputT, D >>
OperatorFactory< InT, OutT, D > & get_operator_factory()
Access the global operator factory for these types.

Definition at line 164 of file operator_factory_impl.hpp.