See also:

How to setup Docker and Nvidia-Docker 2.0 on Ubuntu 18.04

Install

Summary: install CUDA first, then TF.

ref TF 1.0 doc

ref nvidia doc, until step 3

requirements

64-bit Linux

Python 2.7 or 3.3+ (3.5 used in this blog)

NVIDIA CUDA 7.5 (8.0 if Pascal GPU)

NVIDIA cuDNN >v4.0 (v5.1 r......