Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Overview

This guide will show our users how to use the TensorFlow Profiler to profile the execution of your TensorFlow code.

Code example

Copy and paste the following code into tf-profile.py.

...

  1. Run the code with command 

    Code Block
    languagebash
    python tf-profile.py


  2. Compress the logs folder 

    Code Block
    languagebash
    tar -zcvf ./logs.tar.gz ./logs


  3. Download the tarball file with sftp and/or hal-ondemand.

  4. Decompress the tarball file

    Code Block
    languagebash
    tar -zxvf ./logs.tar.gz


  5. Install the tensorboard profile plugin in your python environment.

    Code Block
    languagebash
    pip install tensorboard_plugin_profile


  6. Launch the tensorboard with profiler installed.

    Code Block
    languagebash
    tensorboard --logdir ./logs


  7. Open the tensorboard dashboard in your web browser. (Google Chrome is strongly recommended)Image Added

Remote Profiling on HAL system

...