From d052c8a45c639b9c51be37b9b06f97e0c4d0d02c Mon Sep 17 00:00:00 2001 From: Wenbing Li <10278425+wenbingl@users.noreply.github.com> Date: Mon, 14 Aug 2023 10:16:33 -0700 Subject: [PATCH] Remove the extensions submodule (#17097) ### Description Remove the onnxruntime-extensions submodule since it now was used via cmake FetchContent ### Motivation and Context The submodule relies on an outdated version of the extensions, and the build instructions should be updated to eliminate any confusion. --- cgmanifests/generated/cgmanifest.json | 10 ---------- cmake/external/onnxruntime-extensions | 1 - docs/onnxruntime_extensions.md | 2 +- 3 files changed, 1 insertion(+), 12 deletions(-) delete mode 160000 cmake/external/onnxruntime-extensions diff --git a/cgmanifests/generated/cgmanifest.json b/cgmanifests/generated/cgmanifest.json index f2a433ad3cc7e..fb5a6ad3d0dac 100644 --- a/cgmanifests/generated/cgmanifest.json +++ b/cgmanifests/generated/cgmanifest.json @@ -108,16 +108,6 @@ "comments": "git submodule at cmake/external/onnx" } }, - { - "component": { - "type": "git", - "git": { - "commitHash": "81e7799c69044c745239202085eb0a98f102937b", - "repositoryUrl": "https://github.com/microsoft/onnxruntime-extensions.git" - }, - "comments": "git submodule at cmake/external/onnxruntime-extensions" - } - }, { "component": { "type": "git", diff --git a/cmake/external/onnxruntime-extensions b/cmake/external/onnxruntime-extensions deleted file mode 160000 index 81e7799c69044..0000000000000 --- a/cmake/external/onnxruntime-extensions +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 81e7799c69044c745239202085eb0a98f102937b diff --git a/docs/onnxruntime_extensions.md b/docs/onnxruntime_extensions.md index 9f716065e1460..b10cb42e0d9e6 100644 --- a/docs/onnxruntime_extensions.md +++ b/docs/onnxruntime_extensions.md @@ -6,7 +6,7 @@ ONNXRuntime Extensions is a comprehensive package to extend the capability of th onnxruntime-extensions supports many useful custom operators to enhance the text processing capability of ONNXRuntime, which include some widely used **string operators** and popular **tokenizers**. For custom operators supported and how to use them, please check the documentation [custom operators](https://github.com/microsoft/onnxruntime-extensions/blob/main/docs/custom_text_ops.md). ## Build ONNXRuntime with Extensions -We have supported build onnxruntime-extensions as a static library and link it into ONNXRuntime. To enable custom operators from onnxruntime-extensions, you should add argument `--use_extensions`, which will use onnxruntime-extensions from git submodule in path cmake/external/onnxruntime-extensions **by default**. +We have supported build onnxruntime-extensions as a static library and link it into ONNXRuntime. To enable custom operators from onnxruntime-extensions, you should add argument `--use_extensions`, which will fetch onnxruntime-extensions and build it as static library from https://github.com/microsoft/onnxruntime-extensions **by default**. If you want to build ONNXRuntime with a pre-pulled onnxruntime-extensions, pass extra argument `--extensions_overridden_path `.