快捷方式

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

将显示的日志消息限制为仅内部错误的上下文管理器

示例

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

将显示的日志消息限制为仅警告及以上级别的上下文管理器

示例

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

文档

访问全面的 PyTorch 开发者文档

查看文档

教程

为初学者和高级开发者提供深入的教程

查看教程

资源

查找开发资源并让您的问题得到解答

查看资源