torch.cuda.nvtx.range_push¶ torch.cuda.nvtx.range_push(msg)[source][source]¶ 将一个范围推入嵌套范围跨度的堆栈。返回已启动范围的从零开始的深度。 参数 msg (str) – 与范围关联的 ASCII 消息