Skip to main content
Version: 0.9.x

Function: useExecutorchModule()

useExecutorchModule(executorchModuleProps): ExecutorchModuleType

Defined in: hooks/general/useExecutorchModule.ts:14

React hook for managing an arbitrary Executorch module instance.

Parameters​

executorchModuleProps​

ExecutorchModuleProps

Configuration object containing modelSource and optional preventLoad flag.

Returns​

ExecutorchModuleType

Ready to use Executorch module.