torch_tensorrt.logging¶
- class torch_tensorrt.logging.debug[來源]¶
Context-manager 以透過記錄器顯示完整偵錯資訊
範例
with torch_tensorrt.logging.debug(): model_trt = torch_tensorrt.compile(model, **spec)
- class torch_tensorrt.logging.errors[來源]¶
Context-manager 以限制顯示的記錄訊息僅為錯誤及以上
範例
with torch_tensorrt.logging.errors(): outputs = model_torchtrt(inputs)
- class torch_tensorrt.logging.graphs[來源]¶
Context-manager 以顯示中繼降低傳遞的結果,以及透過記錄器的完整偵錯資訊
範例
with torch_tensorrt.logging.graphs(): model_trt = torch_tensorrt.compile(model, **spec)
- class torch_tensorrt.logging.info[來源]¶
Context-manager 以顯示所有資訊和更嚴重程度的訊息
範例
with torch_tensorrt.logging.info(): model_trt = torch_tensorrt.compile(model, **spec)