OnnxruntimeModule.h 542 Bytes
Newer Older
gaoqiong's avatar
gaoqiong committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef OnnxruntimeModule_h
#define OnnxruntimeModule_h

#import <React/RCTBridgeModule.h>

@interface OnnxruntimeModule : NSObject<RCTBridgeModule>

-(NSDictionary*)loadModel:(NSString*)modelPath
                  options:(NSDictionary*)options;

-(NSDictionary*)run:(NSString*)url
              input:(NSDictionary*)input
             output:(NSArray*)output
            options:(NSDictionary*)options;

@end

#endif /* OnnxruntimeModule_h */