microsoft/onnxruntime-extensions

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
2cf9bab611e9ad563822dee69c44e23bd017fadc

Branches

Tags

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

Clone

HTTPS

Download ZIP

onnxruntime_extensions/onnxprocess/__init__.py

12lines · modecode

1"""
2override the torch importing, to dump all torch operators during the processing code.
3!!!This package depends on onnxruntime_extensions root package, but not vice versa.!!!
4, since this package fully relies on pytorch, while the onnxruntime_extensions doesn't
5"""
6
7from . _tensor import op_from_customop as pyfunc_from_custom_op
8from . _tensor import op_from_model as pyfunc_from_model
9from ._builder import build_customop_model
10from ._session import ONNXTraceSession
11
12trace_for_onnx = ONNXTraceSession.trace_for_onnx
13