/usr/local/lib64/python3.6/site-packages/torch/cuda/__pycache__
NameSizeModeActions
comm.cpython-36.pyc3720644editdlrm
error.cpython-36.pyc1430644editdlrm
graphs.cpython-36.pyc158110644editdlrm
memory.cpython-36.pyc217170644editdlrm
nccl.cpython-36.pyc34440644editdlrm
nvtx.cpython-36.pyc19660644editdlrm
profiler.cpython-36.pyc16320644editdlrm
random.cpython-36.pyc55200644editdlrm
sparse.cpython-36.pyc1440644editdlrm
streams.cpython-36.pyc94850644editdlrm
_utils.cpython-36.pyc18920644editdlrm
__init__.cpython-36.pyc232100644editdlrm
Edit: /usr/local/lib64/python3.6/site-packages/torch/cuda/__pycache__/nvtx.cpython-36.pyc (1966B)
3 Egäã @s|ddlmZyddlmZWn*ek rFGdd„deƒZeƒZYnXddddgZd d„Zd d„Z d d„Z ed d„ƒZ d S)é)Úcontextmanager)Ú_nvtxc@s$eZdZedd„ƒZeZeZeZdS)Ú _NVTXStubcOs tdƒ‚dS)NzANVTX functions not installed. Are you sure you have a CUDA build?)Ú RuntimeError)ÚargsÚkwargs©rú;/usr/local/lib64/python3.6/site-packages/torch/cuda/nvtx.pyÚ_failsz_NVTXStub._failN)Ú__name__Ú __module__Ú __qualname__Ú staticmethodr Ú rangePushAÚrangePopÚmarkArrrr rs rÚ range_pushÚ range_popÚmarkÚrangecCs tj|ƒS)z¾ Pushes a range onto a stack of nested range span. Returns zero-based depth of the range that is started. Args: msg (string): ASCII message to associate with range )rr)Úmsgrrr rscCstjƒS)zz Pops a range off of a stack of nested range spans. Returns the zero-based depth of the range that is ended. )rrrrrr rscCs tj|ƒS)z’ Describe an instantaneous event that occurred at some point. Args: msg (string): ASCII message to associate with the event. )rr)rrrr r'scos t|j||ŽƒdVtƒdS)a 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(). Args: msg (string): message to associate with the range N)rÚformatr)rrrrrr r1s N) Ú contextlibrZtorch._CrÚ ImportErrorÚobjectrÚ__all__rrrrrrrr Ús