Training a simple model in Tensorflow GPU slower than CPU
问题 I have set up a simple linear regression problem in Tensorflow, and have created simple conda environments using Tensorflow CPU and GPU both in 1.13.1 (using CUDA 10.0 in the backend on an NVIDIA Quadro P600). However, it looks like the GPU environment always takes longer time than the CPU environment. The code I'm running is below. import time import warnings import numpy as np import scipy import tensorflow as tf import tensorflow_probability as tfp from tensorflow_probability import