This folder contains examples of using MXNet profiler to generate profiling results in json files.
Please refer to this link
for visualizing profiling results and make sure that you have installed a version of MXNet compiled
with USE_PROFILER=1
.
-
profiler_executor.py. To run this example, simply type
python profiler_executor.py
in terminal. It will generate a json file namedprofile_executor_5iter.json
. -
profiler_imageiter.py. You first need to create a file named
test.rec
, which is an image dataset file before running this example. Please follow this tutorial on how to create.rec
files using an existing tool in MXNet. After you created 'test.rec', typepython profiler_imageiter.py
in terminal. It will generateprofile_imageiter.json
. -
profiler_matmul.py. This example profiles matrix multiplications on GPU. Please make sure that you have installed a GPU enabled version of MXNet before running this example. Type
python profiler_matmul.py
and it will generateprofile_matmul_20iter.json
. -
profiler_ndarray.py. This examples profiles a series of
NDArray
operations. Simply typepython profiler_ndarray.py
in terminal and it will generateprofile_ndarray.json
.