onnxruntime/samples/iOS/ModelRunner/OrtSession.h
Wenbing Li ed102e9d88
Add iOS test pipeline and a sample app. (#5298)
* 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
2020-09-29 13:53:11 -07:00

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 */