torch_tensorrt.logging¶
- class torch_tensorrt.logging.debug[source]¶
透過日誌記錄器顯示完整的除錯資訊的上下文管理器
示例
with torch_tensorrt.logging.debug(): model_trt = torch_tensorrt.compile(model, **spec)
- class torch_tensorrt.logging.errors[source]¶
將顯示的日誌訊息限制為僅錯誤及以上級別的上下文管理器
示例
with torch_tensorrt.logging.errors(): outputs = model_torchtrt(inputs)
- class torch_tensorrt.logging.graphs[source]¶
透過日誌記錄器顯示中間降級過程的結果以及完整的除錯資訊的上下文管理器
示例
with torch_tensorrt.logging.graphs(): model_trt = torch_tensorrt.compile(model, **spec)
- class torch_tensorrt.logging.info[source]¶
顯示所有資訊級別及以上級別訊息的上下文管理器
示例
with torch_tensorrt.logging.info(): model_trt = torch_tensorrt.compile(model, **spec)