latest (dev)
Copy
Latest development documentation · Updated 2026-10-15
tensorplay.cuda.profiler.profile
- tensorplay.cuda.profiler.profile()[source]
Enable profiling.
Context Manager to enabling profile collection by the active profiling tool from CUDA backend. .. rubric:: Example
>>> import tensorplay as tp >>> model = tp.nn.Linear(20, 30).cuda() >>> inputs = tp.randn(128, 20).cuda() >>> with tp.cuda.profiler.profile(): ... model(inputs)
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

