@@ -366,145 +366,6 @@ __attribute__((deprecated("This API is experimental.")))
366366 NS_SWIFT_UNAVAILABLE (" " )
367367 NS_RETURNS_RETAINED;
368368
369- /* *
370- * Sets a single input value for the "forward" method at index 0.
371- *
372- * @param value The input value.
373- * @param error On failure, set to an NSError describing the issue.
374- * @return YES on success; NO otherwise.
375- */
376- - (BOOL )setInput:(ExecuTorchValue *)value
377- error:(NSError **)error NS_SWIFT_UNAVAILABLE (" " );
378-
379- /* *
380- * Sets a single input value for the "forward" method at the specified index.
381- *
382- * @param value The input value.
383- * @param index Zero-based input index.
384- * @param error On failure, set to an NSError describing the issue.
385- * @return YES on success; NO otherwise.
386- */
387- - (BOOL )setInput:(ExecuTorchValue *)value
388- atIndex:(NSInteger )index
389- error:(NSError **)error NS_SWIFT_UNAVAILABLE (" " );
390-
391- /* *
392- * Sets a single input value for the specified method at index 0.
393- *
394- * @param value The input value.
395- * @param methodName The method name.
396- * @param error On failure, set to an NSError describing the issue.
397- * @return YES on success; NO otherwise.
398- */
399- - (BOOL )setInput:(ExecuTorchValue *)value
400- forMethod:(NSString *)methodName
401- error:(NSError **)error NS_SWIFT_UNAVAILABLE (" " );
402-
403- /* *
404- * Sets a single input value for the specified method at the given index.
405- *
406- * The module retains the provided value to keep its backing storage alive
407- * until the value is overwritten or the module is deallocated.
408- *
409- * @param value The input value.
410- * @param methodName The method name.
411- * @param index Zero-based input index.
412- * @param error On failure, set to an NSError describing the issue.
413- * @return YES on success; NO otherwise.
414- */
415- - (BOOL )setInput:(ExecuTorchValue *)value
416- forMethod:(NSString *)methodName
417- atIndex:(NSInteger )index
418- error:(NSError **)error NS_REFINED_FOR_SWIFT;
419-
420- /* *
421- * Sets all input values for the "forward" method.
422- *
423- * The number and types of values must match the method’s declared inputs.
424- *
425- * @param values The input values, one per declared input.
426- * @param error On failure, set to an NSError describing the issue.
427- * @return YES on success; NO otherwise.
428- */
429- - (BOOL )setInputs:(NSArray <ExecuTorchValue *> *)values
430- error:(NSError **)error NS_SWIFT_UNAVAILABLE (" " );
431-
432- /* *
433- * Sets all input values for the specified method.
434- *
435- * The module retains the provided values to keep their backing storage alive
436- * until the values are overwritten or the module is deallocated.
437- *
438- * @param values The input values, one per declared input.
439- * @param methodName The method name.
440- * @param error On failure, set to an NSError describing the issue.
441- * @return YES on success; NO otherwise.
442- */
443- - (BOOL )setInputs:(NSArray <ExecuTorchValue *> *)values
444- forMethod:(NSString *)methodName
445- error:(NSError **)error NS_REFINED_FOR_SWIFT;
446-
447- /* *
448- * Sets the output buffer for the "forward" method at index 0.
449- *
450- * Only tensor outputs are supported. The provided value must wrap a tensor
451- * compatible with the method’s output slot.
452- *
453- * @param value The output buffer (must wrap a tensor).
454- * @param error On failure, set to an NSError describing the issue.
455- * @return YES on success; NO otherwise.
456- */
457- - (BOOL )setOutput:(ExecuTorchValue *)value
458- error:(NSError **)error NS_SWIFT_UNAVAILABLE (" " );
459-
460- /* *
461- * Sets the output buffer for the "forward" method at the specified index.
462- *
463- * Only tensor outputs are supported. The provided value must wrap a tensor
464- * compatible with the method’s output slot.
465- *
466- * @param value The output buffer (must wrap a tensor).
467- * @param index Zero-based output index.
468- * @param error On failure, set to an NSError describing the issue.
469- * @return YES on success; NO otherwise.
470- */
471- - (BOOL )setOutput:(ExecuTorchValue *)value
472- atIndex:(NSInteger )index
473- error:(NSError **)error NS_SWIFT_UNAVAILABLE (" " );
474-
475- /* *
476- * Sets the output buffer for the specified method at index 0.
477- *
478- * Only tensor outputs are supported. The provided value must wrap a tensor
479- * compatible with the method’s output slot.
480- *
481- * @param value The output buffer (must wrap a tensor).
482- * @param methodName The method name.
483- * @param error On failure, set to an NSError describing the issue.
484- * @return YES on success; NO otherwise.
485- */
486- - (BOOL )setOutput:(ExecuTorchValue *)value
487- forMethod:(NSString *)methodName
488- error:(NSError **)error NS_SWIFT_UNAVAILABLE (" " );
489-
490- /* *
491- * Sets the output buffer for the specified method at the given index.
492- *
493- * The module retains the provided value to keep its backing storage alive
494- * until the value is overwritten or the module is deallocated.
495- * Only tensor outputs are supported.
496- *
497- * @param value The output buffer (must wrap a tensor).
498- * @param methodName The method name.
499- * @param index Zero-based output index.
500- * @param error On failure, set to an NSError describing the issue.
501- * @return YES on success; NO otherwise.
502- */
503- - (BOOL )setOutput:(ExecuTorchValue *)value
504- forMethod:(NSString *)methodName
505- atIndex:(NSInteger )index
506- error:(NSError **)error NS_REFINED_FOR_SWIFT;
507-
508369+ (instancetype )new NS_UNAVAILABLE;
509370- (instancetype )init NS_UNAVAILABLE;
510371
0 commit comments