mxnet.profiler.Task¶
-
class
mxnet.profiler.
Task
(domain, name)[source]¶ Profiling Task class.
A task is a logical unit of work performed by a particular thread. Tasks can nest; thus, tasks typically correspond to functions, scopes, or a case block in a switch statement. You can use the Task API to assign tasks to threads.
This is different from Frame in that all profiling statistics for passes through the task’s begin and endpoints are accumulated together into a single statistical analysys, rather than a separate analysis for each pass (as with a Frame)
- Parameters
domain (Domain object) – Domain to which this object belongs
name (string) – Name of the task
Methods
__init__
(domain, name)Initialize self.
start
()Start timing scope for this object
stop
()Stop timing scope for this object