mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-28 20:11:22 +00:00
Update Objective-C API to be more usable from Swift. E.g., to allow conversion from Objective-C methods with trailing NSError** parameter to throwing Swift methods. Update CMake Objective-C framework setup.
16 lines
268 B
Objective-C
16 lines
268 B
Objective-C
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License.
|
|
|
|
#import "ort_env.h"
|
|
|
|
#include "core/session/onnxruntime_cxx_api.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface ORTEnv ()
|
|
|
|
- (Ort::Env&)CXXAPIOrtEnv;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|