torch.cuda.profiler.profile
- torch.cuda.profiler.profile()
Enable profiling.
Context Manager to enabling profile collection by the active profiling tool from CUDA backend. .. rubric:: Example
>>> import torch >>> model = torch.nn
Enable profiling.
Context Manager to enabling profile collection by the active profiling tool from CUDA backend. .. rubric:: Example
>>> import torch
>>> model = torch.nn