8 #ifndef PHYSICSTOOLS_MXNET_MXNETCPPPREDICTOR_H_ 9 #define PHYSICSTOOLS_MXNET_MXNETCPPPREDICTOR_H_ 16 #include "mxnet-cpp/MxNetCpp.h" 58 void set_input_shapes(
const std::vector<std::string>&
input_names,
const std::vector<std::vector<mx_uint>>& input_shapes);
61 const std::vector<float>& predict(
const std::vector<std::vector<mx_float>>& input_data);
71 std::unique_ptr<Executor>
exec_;
const std::map< std::string, NDArray > & aux_map() const
std::map< std::string, NDArray > aux_map_
static boost::mutex mutex
std::map< std::string, NDArray > arg_map_
void load_parameters(const std::string ¶m_file)
std::map< std::string, NDArray > aux_map_
std::vector< float > pred_
const std::map< std::string, NDArray > & arg_map() const
Symbol symbol(const std::string &output_node) const
const Symbol & symbol() const
static const Context context_
std::map< std::string, NDArray > arg_map_
std::unique_ptr< Executor > exec_
std::vector< std::string > input_names_