...
Code Block | ||
---|---|---|
| ||
mxnet.profiler.get_summary(reset=False) """Gets current profiler summary as a JSON string. If reset is True, resets all the aggregate statistics collected up to this point i.e., it clears all the profiler counters. Parameters: ----------- reset: boolean, If True, resets all profiler statistics collected up to this point. """ |
Output:
We can visualize the output of this API as a JSON representation of the output from `mxnet.profiler.dumps(reset=False)` API as shown below.
However, please note that, below, Memory profile output is not the total bytes allocated. Current output from dumps is providing number of memory allocation calls made.
In the new suggested API, we will be adding additional Summary - Memory => Total Bytes Allocated (Per Device).
API / User Experience
We can define 2 types of users of the library and describe API interface for each of these users.
...