mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
* Add iOS test pipeline and a sample app. * clean up the unused code. * clean up. * revert the unknown change * disable the shared library for iOS. * add open source notice text. * ignore the skipped test. * extract the common ortenv setup
28 lines
568 B
Objective-C
28 lines
568 B
Objective-C
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License.
|
|
|
|
#ifndef ort_session_h
|
|
#define ort_session_h
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
// @class TFLInterpreterOptions;
|
|
// @class TFLTensor;
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
/**
|
|
* An OnnxRuntime Session
|
|
*/
|
|
@interface OrtMobileSession : NSObject
|
|
|
|
- (nullable instancetype)initWithModelPath:(NSString *)modelPath error:(NSError **)error;
|
|
- (NSString*)run: (NSMutableData *)buff mname:(NSString*)mname error:(NSError **)error;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|
|
|
|
|
|
#endif /* ort_session_h */
|