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/pnp/__init__.py

13lines · modepreview

# onnxruntime-extensions pre&post processing frontend depends on the PyTorch
try:
    import torch
except ImportError as e:
    print("No torch installation found, which is required by the pre&post scripting!")
    raise e

from ._base import ProcessingTracedModule, ProcessingScriptModule, CustomFunction
from ._torchext import *  # noqa
from ._unifier import export

from ._imagenet import * # noqa
from ._nlp import PreHuggingFaceGPT2, PreHuggingFaceBert, HfBertTokenizer # noqa