microsoft/onnxruntime-extensions

Public

mirrored from https://github.com/microsoft/onnxruntime-extensionsAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
skottmckay/BuildInfra_AndTestImageLibs

Branches

Tags

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

Clone

HTTPS

Download ZIP

onnxruntime_extensions/pnp/__init__.py

13lines · modecode

1# onnxruntime-extensions pre&post processing frontend depends on the PyTorch
2try:
3 import torch
4except ImportError as e:
5 print("No torch installation found, which is required by the pre&post scripting!")
6 raise e
7
8from ._base import ProcessingTracedModule, ProcessingScriptModule, CustomFunction
9from ._torchext import * # noqa
10from ._unifier import export
11
12from ._imagenet import * # noqa
13from ._nlp import PreHuggingFaceGPT2, PreHuggingFaceBert, HfBertTokenizer # noqa