41 OrtModel(std::unordered_map<std::string, std::string> optionsMap) {
reset(optionsMap); }
42 void init(std::unordered_map<std::string, std::string> optionsMap) {
reset(optionsMap); }
43 void reset(std::unordered_map<std::string, std::string>);
48 template <
class I,
class O>
49 std::vector<O>
v2v(std::vector<I>&,
bool =
true);
52 template <
class I,
class O>
53 std::vector<O>
inference(std::vector<I>&);
55 template <
class I,
class O>
56 std::vector<O>
inference(std::vector<std::vector<I>>&);
74 OrtVariables* pImplOrt;
77 std::vector<const char*> inputNamesChar, outputNamesChar;
78 std::vector<std::string> mInputNames, mOutputNames;
79 std::vector<std::vector<int64_t>> mInputShapes, mOutputShapes;
82 std::string modelPath, device =
"cpu", dtype =
"float";
83 int intraOpNumThreads = 0, deviceId = 0, enableProfiling = 0, loggingLevel = 0, allocateDeviceMemory = 0, enableOptimizations = 0;
85 std::string printShape(
const std::vector<int64_t>&);