Installing the TensorFlow Profiler UI

Source: Internet
Author: User

TensorFlow Profiler UI

    1. Install Python Dependencies.

      pip install --user -r requirements.txt

    2. Install pprof.

Note: Installation requires the first installation of go and Google home pprof tools.

    1. Create a profile context.

    2. Start the UI.

      python ui.py --profile_context_path=/your path/

    1. Open URLs through the browser to view the UI interface

Error:

OSError: [Errno 2] No such file or directory

After installing the Pprof

 OSError: [Errno 13] Permission denied

Ubuntu System Installation Go

    1. Since this machine uses Xshell to connect to a Linux system remotely, and this machine does not have a wall, you cannot use the following command:

      wget -c https://storage.googleapis.com/golang/go1.7.1.linux-amd64.tar.gz

But opening the above URL directly can download the TAR package natively, so download the tar package locally and then upload it to the remote.

    1. Upload files to Ubuntu via Xshell

Installing Lrzsz:apt-get Install Lrzsz

Then drag-and-drop the downloaded tar on this xshell.

    1. Set environment variables after decompression:

      tar -C /usr/local -xzf go1.7.1.linux-amd64.tar.gz
      cd ~
      vim .profile

Not added at the end of the. Profile file:

export PATH=$PATH:/usr/local/go/bin

Save exit to make the statement effective and test to see if the installation was successful:

. .profile

Installing the Pprof tool

go get -u github.com/google/pprof

The above command will be faulted

package github.com/google/pprof: cannot download, $GOPATH not set. For more details see: go help gopath

Here's how to fix it:

env GOPATH=/usr/local/go/bin/pprof go get -u github.com/google/pprof

Manually make Gopath before installation, this path is also the PPROF installation path!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.