Polygraphy
This page includes the Python API reference documentation for Polygraphy. Polygraphy is a toolkit designed to assist in running and debugging deep learning models in various frameworks.
For installation instructions, examples, and information about the CLI tools, see the GitHub repository instead.
For a conceptual overview of the Python API, see this page.
Warning
Any APIs not documented here should be considered internal only and do not adhere to the deprecation policy for public APIs. Thus, they may be modified or removed at any time without warning. Avoid using undocumented APIs!
- Backends
- Base Interface
- Common
- ONNX
- Loaders
GsFromOnnx
gs_from_onnx()
OnnxFromPath
onnx_from_path()
OnnxFromTfGraph
onnx_from_tf_graph()
ModifyOutputs
modify_outputs()
ConvertToFp16
convert_to_fp16()
FoldConstants
fold_constants()
SetUpperBound
set_upper_bound()
InferShapes
infer_shapes()
ExtractSubgraph
extract_subgraph()
SaveOnnx
save_onnx()
BytesFromOnnx
bytes_from_onnx()
OnnxFromBytes
onnx_from_bytes()
- Loaders
- ONNX-Runtime
- Plugin Reference
- TensorFlow 1.X
- TensorRT
- Algorithm Selector
- Calibrator
- Config
- Loaders
LoadPlugins
load_plugins()
CreateNetwork
create_network()
NetworkFromOnnxBytes
network_from_onnx_bytes()
NetworkFromOnnxPath
network_from_onnx_path()
PostprocessNetwork
postprocess_network()
ModifyNetworkOutputs
modify_network_outputs()
SetLayerPrecisions
set_layer_precisions()
SetTensorDatatypes
set_tensor_datatypes()
SetTensorFormats
set_tensor_formats()
LoadRuntime
load_runtime()
EngineBytesFromNetwork
engine_bytes_from_network()
EngineFromNetwork
engine_from_network()
EngineFromBytes
engine_from_bytes()
EngineFromPath
engine_from_path()
BytesFromEngine
bytes_from_engine()
SaveEngine
save_engine()
OnnxLikeFromNetwork
onnx_like_from_network()
MarkDebug
mark_debug()
- Optimization Profile
- Runners
- Utilities
- Comparing Results
- Common
- Global Configuration
- Constants
- CUDA Wrapper
- Data Types
- Exceptions
- Function Helpers
- JSON Utilities
- Logger
LogMode
SeverityTrie
Logger
Logger.ULTRA_VERBOSE
Logger.SUPER_VERBOSE
Logger.EXTRA_VERBOSE
Logger.VERBOSE
Logger.INFO
Logger.START
Logger.FINISH
Logger.WARNING
Logger.ERROR
Logger.CRITICAL
Logger.log_file
Logger.module_severity
Logger.module_path()
Logger.register_callback()
Logger.indent()
Logger.verbosity()
Logger.log()
Logger.ultra_verbose()
Logger.super_verbose()
Logger.extra_verbose()
Logger.verbose()
Logger.info()
Logger.start()
Logger.finish()
Logger.warning()
Logger.error()
Logger.critical()
Logger.log_exception()
G_LOGGER