Table Of Contents
Table Of Contents


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)

  • domain (Domain object) – Domain to which this object belongs

  • name (string) – Name of the task

__init__(domain, name)[source]

Initialize self. See help(type(self)) for accurate signature.


__init__(domain, name)

Initialize self.


Start timing scope for this object


Stop timing scope for this object