2020-05-05 18:45:12 +00:00
|
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
|
// Licensed under the MIT License.
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <napi.h>
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
|
|
#include "onnxruntime_cxx_api.h"
|
|
|
|
|
|
|
|
|
|
// convert a Javascript OnnxValue object to an OrtValue object
|
2024-08-14 23:51:22 +00:00
|
|
|
Ort::Value NapiValueToOrtValue(Napi::Env env, Napi::Value value, OrtMemoryInfo* memory_info);
|
2020-05-05 18:45:12 +00:00
|
|
|
|
|
|
|
|
// convert an OrtValue object to a Javascript OnnxValue object
|
2024-08-14 23:51:22 +00:00
|
|
|
Napi::Value OrtValueToNapiValue(Napi::Env env, Ort::Value& value);
|