# tensorplay.cuda.nvtx.range

Source: https://www.tensorplay.cn/docs/generated/tensorplay.cuda.nvtx.range.html

# tensorplay.cuda.nvtx.range

tensorplay.cuda.nvtx.range(msg, *args, **kwargs)[[source]](../_modules/tensorplay/cuda/nvtx.html#range)

Context manager / decorator that pushes an NVTX range at the beginning
of its scope, and pops it at the end. If extra arguments are given,
they are passed as arguments to msg.format().

Parameters:

msg ([str](https://docs.python.org/3/library/stdtypes.html#str)) – message to associate with the range
