1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| // Copyright (c) Microsoft Corporation. All rights reserved.
| // Licensed under the MIT License.
|
| #pragma once
|
| #include <napi.h>
|
| #include <vector>
|
| namespace Ort {
| struct SessionOptions;
| }
|
| // parse a Javascript session options object and fill the native SessionOptions object.
| void ParseSessionOptions(const Napi::Object options, Ort::SessionOptions& sessionOptions,
| std::vector<std::vector<char>>* externalDataBuffers = nullptr);
|
| // parse a Javascript session options object and prepare the preferred output locations.
| void ParsePreferredOutputLocations(const Napi::Object options, const std::vector<std::string>& outputNames, std::vector<int>& preferredOutputLocations);
|
|