How are the new tf.contrib.summary summaries in TensorFlow evaluated?

answer moved from edit to self-answer as requested I just played around with this a little bit, and it seems that if one combines tf.control_dependencies with tf.record_summaries_every_n_global_steps it behaves as expected and the summary only gets recorded every nth step. But if they are run together within a session, such as session.run([train, summs]), the summaries … Read more

Could not load dynamic library ‘cudart64_101.dll’ on tensorflow CPU-only installation

Tensorflow 2.1+ What’s going on? With the new Tensorflow 2.1 release, the default tensorflow pip package contains both CPU and GPU versions of TF. In previous TF versions, not finding the CUDA libraries would emit an error and raise an exception, while now the library dynamically searches for the correct CUDA version and, if it … Read more

Can I run Keras model on gpu?

Yes you can run keras models on GPU. Few things you will have to check first. your system has GPU (Nvidia. As AMD doesn’t work yet) You have installed the GPU version of tensorflow You have installed CUDA installation instructions Verify that tensorflow is running with GPU check if GPU is working sess = tf.Session(config=tf.ConfigProto(log_device_placement=True)) … Read more

How does tf.app.run() work?

if __name__ == “__main__”: means current file is executed under a shell instead of imported as a module. tf.app.run() As you can see through the file app.py def run(main=None, argv=None): “””Runs the program with an optional ‘main’ function and ‘argv’ list.””” f = flags.FLAGS # Extract the args from the optional `argv` list. args = … Read more