react-native-executorch
Version:
An easy way to run AI models in React Native with ExecuTorch
8 lines (7 loc) • 405 B
TypeScript
import { TensorPtr } from '../../types/common';
import { BaseNonStaticModule } from '../BaseNonStaticModule';
import { ResourceSource } from '../../types/common';
export declare class ExecutorchModule extends BaseNonStaticModule {
load(modelSource: ResourceSource, onDownloadProgressCallback?: (progress: number) => void): Promise<void>;
forward(inputTensor: TensorPtr[]): Promise<TensorPtr[]>;
}