@@ -173,6 +173,55 @@ __attribute__((deprecated("This API is experimental.")))
173173 error:(NSError **)error
174174 NS_SWIFT_NAME (execute(_:_:));
175175
176+ /* *
177+ * Executes the "forward" method with the provided input values.
178+ *
179+ * This is a convenience method that calls the executeMethod with "forward" as the method name.
180+ *
181+ * @param values An NSArray of ExecuTorchValue objects representing the inputs.
182+ * @param error A pointer to an NSError pointer that is set if an error occurs.
183+ * @return An NSArray of ExecuTorchValue objects representing the outputs, or nil in case of an error.
184+ */
185+ - (nullable NSArray <ExecuTorchValue *> *)forwardWithInputs:(NSArray <ExecuTorchValue *> *)values
186+ error:(NSError **)error
187+ NS_SWIFT_NAME (forward(_:));
188+
189+ /* *
190+ * Executes the "forward" method with the provided single input value.
191+ *
192+ * This is a convenience method that calls the executeMethod with "forward" as the method name.
193+ *
194+ * @param value An ExecuTorchValue object representing the input.
195+ * @param error A pointer to an NSError pointer that is set if an error occurs.
196+ * @return An NSArray of ExecuTorchValue objects representing the outputs, or nil in case of an error.
197+ */
198+ - (nullable NSArray <ExecuTorchValue *> *)forwardWithInput:(ExecuTorchValue *)value
199+ error:(NSError **)error
200+ NS_SWIFT_NAME (forward(_:));
201+
202+ /* *
203+ * Executes the "forward" method with no inputs.
204+ *
205+ * This is a convenience method that calls the executeMethod with "forward" as the method name.
206+ *
207+ * @param error A pointer to an NSError pointer that is set if an error occurs.
208+ * @return An NSArray of ExecuTorchValue objects representing the outputs, or nil in case of an error.
209+ */
210+ - (nullable NSArray <ExecuTorchValue *> *)forward:(NSError **)error;
211+
212+ /* *
213+ * Executes the "forward" method with no inputs.
214+ *
215+ * This is a convenience method that calls the executeMethod with "forward" as the method name.
216+ *
217+ * @param tensors An NSArray of ExecuTorchTensor objects representing the inputs.
218+ * @param error A pointer to an NSError pointer that is set if an error occurs.
219+ * @return An NSArray of ExecuTorchValue objects representing the outputs, or nil in case of an error.
220+ */
221+ - (nullable NSArray <ExecuTorchValue *> *)forwardWithTensors:(NSArray <ExecuTorchTensor *> *)tensors
222+ error:(NSError **)error
223+ NS_SWIFT_NAME (forward(_:));
224+
176225+ (instancetype )new NS_UNAVAILABLE;
177226- (instancetype )init NS_UNAVAILABLE;
178227
0 commit comments