Skip to content

Commit

Permalink
Remove the extensions submodule (microsoft#17097)
Browse files Browse the repository at this point in the history
### 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.
  • Loading branch information
wenbingl authored Aug 14, 2023
1 parent 68ea963 commit d052c8a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
10 changes: 0 additions & 10 deletions cgmanifests/generated/cgmanifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion cmake/external/onnxruntime-extensions
Submodule onnxruntime-extensions deleted from 81e779
2 changes: 1 addition & 1 deletion docs/onnxruntime_extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <path-to-onnxruntime-extensions>`.

Expand Down

0 comments on commit d052c8a

Please sign in to comment.