UNPKG

react-native-executorch

Version:

An easy way to run AI models in React Native with ExecuTorch

14 lines (13 loc) 461 B
import { ResourceSource } from '../../types/common'; interface Props { modelSource: ResourceSource; preventLoad?: boolean; } export declare const useExecutorchModule: ({ modelSource, preventLoad, }: Props) => { error: string | null; isReady: boolean; isGenerating: boolean; downloadProgress: number; forward: (inputTensor: import("../../types/common").TensorPtr[]) => Promise<import("../../types/common").TensorPtr[]>; }; export {};