快捷方式

torch_tensorrt.logging

class torch_tensorrt.logging.debug[源代码]

用于通过日志记录器显示完整调试信息的上下文管理器

示例

with torch_tensorrt.logging.debug():
    model_trt = torch_tensorrt.compile(model, **spec)
class torch_tensorrt.logging.errors[源代码]

用于将显示的日志消息限制为仅错误及以上级别的上下文管理器

示例

with torch_tensorrt.logging.errors():
    outputs = model_torchtrt(inputs)
class torch_tensorrt.logging.graphs[源代码]

用于通过日志记录器显示中间降级过程的结果以及完整调试信息的上下文管理器

示例

with torch_tensorrt.logging.graphs():
    model_trt = torch_tensorrt.compile(model, **spec)
class torch_tensorrt.logging.info[源代码]

用于显示所有信息及更高严重性级别消息的上下文管理器

示例

with torch_tensorrt.logging.info():
    model_trt = torch_tensorrt.compile(model, **spec)
class torch_tensorrt.logging.internal_errors[源代码]

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

示例

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

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

示例

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

文档

访问全面的 PyTorch 开发者文档

查看文档

教程

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

查看教程

资源

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

查看资源