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