File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed
extension/apple/ExecuTorch/Exported Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -134,10 +134,21 @@ __attribute__((deprecated("This API is experimental.")))
134
134
* @return An initialized ExecuTorchModule instance.
135
135
*/
136
136
- (instancetype )initWithFilePath:(NSString *)filePath
137
- dataFilePath:(NSString *)dataPath
137
+ dataFilePath:(NSString *)dataFilePath
138
138
loadMode:(ExecuTorchModuleLoadMode)loadMode
139
139
NS_DESIGNATED_INITIALIZER;
140
140
141
+ /* *
142
+ * Initializes a module with a file path, data path and a specified load mode.
143
+ *
144
+ * @param filePath A string representing the path to the ExecuTorch program file.
145
+ * @param dataFilePath A string representing the path to a .ptd file with
146
+ * external tensors and external data.
147
+ * @return An initialized ExecuTorchModule instance.
148
+ */
149
+ - (instancetype )initWithFilePath:(NSString *)filePath
150
+ dataFilePath:(NSString *)dataFilePath;
151
+
141
152
/* *
142
153
* Initializes a module with a file path and a specified load mode.
143
154
*
Original file line number Diff line number Diff line change @@ -265,6 +265,13 @@ - (instancetype)initWithFilePath:(NSString *)filePath
265
265
return self;
266
266
}
267
267
268
+ - (instancetype )initWithFilePath : (NSString *)filePath
269
+ dataFilePath : (NSString *)dataFilePath {
270
+ return [self initWithFilePath: filePath
271
+ dataFilePath: dataFilePath
272
+ loadMode: ExecuTorchModuleLoadModeFile];
273
+ }
274
+
268
275
- (instancetype )initWithFilePath : (NSString *)filePath
269
276
loadMode : (ExecuTorchModuleLoadMode)loadMode {
270
277
return [self initWithFilePath: filePath
You can’t perform that action at this time.
0 commit comments