We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78a1e98 commit 7844378Copy full SHA for 7844378
1 file changed
packages/react-native-executorch/common/rnexecutorch/RnExecutorchInstaller.cpp
@@ -1,5 +1,6 @@
1
#include "RnExecutorchInstaller.h"
2
3
+#include <rnexecutorch/TokenizerModule.h>
4
#include <rnexecutorch/host_objects/JsiConversions.h>
5
#include <rnexecutorch/models/classification/Classification.h>
6
#include <rnexecutorch/models/image_segmentation/ImageSegmentation.h>
@@ -42,6 +43,11 @@ void RnExecutorchInstaller::injectJSIBindings(
42
43
*jsiRuntime, "loadExecutorchModule",
44
RnExecutorchInstaller::loadModel<BaseModel>(jsiRuntime, jsCallInvoker,
45
"loadExecutorchModule"));
46
+
47
+ jsiRuntime->global().setProperty(
48
+ *jsiRuntime, "loadTokenizerModule",
49
+ RnExecutorchInstaller::loadModel<TokenizerModule>(
50
+ jsiRuntime, jsCallInvoker, "loadTokenizerModule"));
51
}
52
53
} // namespace rnexecutorch
0 commit comments