快捷鍵

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)
class torch_tensorrt.logging.internal_errors[來源]

Context-manager 以限制顯示的記錄訊息僅為內部錯誤

範例

with torch_tensorrt.logging.internal_errors():
    outputs = model_torchtrt(inputs)
class torch_tensorrt.logging.warnings[來源]

Context-manager 以限制顯示的記錄訊息僅為警告及以上

範例

with torch_tensorrt.logging.warnings():
    model_trt = torch_tensorrt.compile(model, **spec)

文件

存取 PyTorch 的完整開發人員文件

檢視文件

教學

取得適用於初學者和進階開發人員的深入教學

檢視教學

資源

尋找開發資源並獲得問題解答

檢視資源