29 const ::Ort::SessionOptions* session_options =
nullptr);
47 FloatArrays
run(
const std::vector<std::string>& input_names,
48 FloatArrays& input_values,
49 const std::vector<std::string>& output_names = {},
50 int64_t batch_size = 1)
const;
65 const std::string& output_name)
const;
68 static ::Ort::Env env_;
69 std::unique_ptr<::Ort::Session> session_;
71 std::vector<std::string> input_node_strings_;
72 std::vector<const char*> input_node_names_;
73 std::map<std::string, std::vector<int64_t>> input_node_dims_;
75 std::vector<std::string> output_node_strings_;
76 std::vector<const char*> output_node_names_;
77 std::map<std::string, std::vector<int64_t>> output_node_dims_;
FloatArrays run(const std::vector< std::string > &input_names, FloatArrays &input_values, const std::vector< std::string > &output_names={}, int64_t batch_size=1) const
Run model inference and get outputs.