Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Latest commit

 

History

History

profiler

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

MXNet Profiler Examples

This folder contains examples of using MXNet profiler to generate profiling results in json files. Please refer to this link for visualizing profiling results.

  • profiler_executor.py. To run this example,

    • clone mxnet-memonger (git clone https://github.com/dmlc/mxnet-memonger.git).
    • Add mxnet-memonger folder to PYTHONPATH. export PYTHONPATH=$PYTHONPATH:/path/to/mxnet-memonger
    • type python profiler_executor.py in terminal. It will generate a json file named profile_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', type python profiler_imageiter.py in terminal. It will generate profile_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 generate profile_matmul_20iter.json.

  • profiler_ndarray.py. This examples profiles a series of NDArray operations. Simply type python profiler_ndarray.py in terminal and it will generate profile_ndarray.json.