MCPcopy Create free account
hub / github.com/pytorch/executorch / ExportError

Class ExportError

exir/error.py:46–55  ·  view source on GitHub ↗

This type of exception is raised for errors that are directly caused by the user code. In general, user errors happen during model authoring, tracing, using our public facing APIs, and writing graph passes.

Source from the content-addressed store, hash-verified

44
45
46class ExportError(Exception):
47 """
48 This type of exception is raised for errors that are directly caused by the user
49 code. In general, user errors happen during model authoring, tracing, using our public
50 facing APIs, and writing graph passes.
51 """
52
53 def __init__(self, error_code: ExportErrorType, message: str) -> None:
54 prefix = f"[{error_code}]: "
55 super().__init__(prefix + message)

Callers 15

shapeFunction · 0.90
_make_submoduleFunction · 0.90
while_loopFunction · 0.90
wrapperFunction · 0.90
pretty_printFunction · 0.90
migrate_meta_valMethod · 0.90
checkMethod · 0.90
dynamo_traceFunction · 0.90
extract_inputFunction · 0.90
getMethod · 0.90
captureFunction · 0.90

Calls

no outgoing calls

Tested by 1

throws_errMethod · 0.72