microsoft/onnxruntime-extensions

Public

mirrored fromhttps://github.com/microsoft/onnxruntime-extensionsAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
0f45fef2d9301cc5b479b4df4bd8ecbaac93e1e6

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

onnxruntime_extensions/__init__.py

27lines · modecode

1# Copyright (c) Microsoft Corporation. All rights reserved.
2# Licensed under the MIT License. See License.txt in the project root for
3# license information.
4###############################################################################
5
6"""
7The entry point to onnxruntime-extensions package.
8"""
9
10__author__ = "Microsoft"
11
12
13from ._version import __version__
14from ._ocos import get_library_path # noqa
15from ._ocos import Opdef, PyCustomOpDef # noqa
16from ._ocos import hash_64 # noqa
17from ._ocos import enable_py_op # noqa
18from ._ocos import expand_onnx_inputs # noqa
19from ._ocos import hook_model_op # noqa
20from ._ocos import default_opset_domain # noqa
21from ._cuops import * # noqa
22from ._ortapi2 import OrtPyFunction as PyOrtFunction # backward compatibility
23from ._ortapi2 import OrtPyFunction, optimize_model, make_onnx_model, ONNXRuntimeError
24
25
26onnx_op = Opdef.declare
27PyOp = PyCustomOpDef
28