1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
| // Copyright (c) Microsoft Corporation. All rights reserved.
| // Licensed under the MIT License.
|
| #pragma once
|
| #include <cstddef>
|
| namespace onnxruntimejsi {
|
| enum class LoadModelArgumentType {
| String,
| ArrayBuffer,
| Number,
| Object,
| Other,
| };
|
| struct LoadModelArgumentLayout {
| bool valid = false;
| bool usesModelBuffer = false;
| size_t optionsIndex = 0;
| };
|
| /**
| * @brief Validate a React Native loadModel overload and identify its options argument.
| */
| LoadModelArgumentLayout resolveLoadModelArgumentLayout(
| const LoadModelArgumentType* argumentTypes, size_t argumentCount) noexcept;
|
| } // namespace onnxruntimejsi
|
|