评价此页

torch.mps.profiler.is_metal_capture_enabled#

torch.mps.profiler.is_metal_capture_enabled()[源代码]#

检查 `metal_capture` 上下文管理器是否可用。要启用 Metal 捕获,请设置 MTL_CAPTURE_ENABLED 环境变量。

返回类型

布尔值