Be Coded….


Validating TensorFlow using Dockers

Validate your installation

To validate your TensorFlow installation, do the following:

  1. Ensure that your environment is prepared to run TensorFlow programs.
  2. Run a short TensorFlow program.

Prepare your environment

If you installed on native pip, Virtualenv, or Anaconda, then do the following:

  1. Start a terminal.
  2. If you installed with Virtualenv or Anaconda, activate your container.
  3. If you installed TensorFlow source code, navigate to any directory except one containing TensorFlow source code.

If you installed through Docker, start a Docker container that runs bash. For example:

Run a short TensorFlow program

Invoke python from your shell as follows:

Enter the following short program inside the python interactive shell:

If the system outputs the following, then you are ready to begin writing TensorFlow programs:

If you are new to TensorFlow, see Getting Started with TensorFlow.

Comments are Closed

Theme by Anders Norén