File tree Expand file tree Collapse file tree
packages/react-native-executorch/src/modules Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export class BaseNonStaticModule {
1616 this . nativeModule = global . loadExecutorchModule ( paths [ 0 ] || '' ) ;
1717 }
1818
19- protected async forwardET ( inputTensor : TensorPtr [ ] ) : Promise < ArrayBuffer [ ] > {
19+ protected async forwardET ( inputTensor : TensorPtr [ ] ) : Promise < TensorPtr [ ] > {
2020 return await this . nativeModule . forward ( inputTensor ) ;
2121 }
2222
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { TensorPtr } from '../../types/common';
22import { BaseNonStaticModule } from '../BaseNonStaticModule' ;
33
44export class NewExecutorchModule extends BaseNonStaticModule {
5- async forward ( inputTensor : TensorPtr [ ] ) : Promise < ArrayBuffer [ ] > {
5+ async forward ( inputTensor : TensorPtr [ ] ) : Promise < TensorPtr [ ] > {
66 // As TypeScript doesn't provide overloading, this method is just a proxy for the users
77 return await this . forwardET ( inputTensor ) ;
88 }
You can’t perform that action at this time.
0 commit comments