That is my second time going through the whole installation process of tensorflow (gpu). This time when I run in cmd activate tensorflow
and then if I feed in the python interpreter the following test code:
# Creates a graph.
a = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[2, 3], name='a')
b = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[3, 2], name='b')
c = tf.matmul(a, b)
# Creates a session with log_device_placement set to True.
sess = tf.Session(config=tf.ConfigProto(log_device_placement=True))
# Runs the op.
print(sess.run(c))
It successfully recognizes the GPU and runs the matrices functions on it. When I open the Anaconda Spyder IDE though, and run the same test in the same way the interpreter says the code was being run on the CPU. How can I fix that? What may cause it? I am running on Win 10.
Any help will be of great use, thank you in advance.
Kind regards, Konny