react-native-executorch
Version:
An easy way to run AI models in React Native with ExecuTorch
17 lines (16 loc) • 403 B
JavaScript
;
export class BaseModule {
nativeModule = null;
async forwardET(inputTensor) {
return await this.nativeModule.forward(inputTensor);
}
async getInputShape(methodName, index) {
return this.nativeModule.getInputShape(methodName, index);
}
delete() {
if (this.nativeModule !== null) {
this.nativeModule.unload();
}
}
}
//# sourceMappingURL=BaseModule.js.map