Hello Guys, How are you all? Hope You all Are Fine. Today I am trying to use TensorFlow library and Whenever I am trying to Run my Python Code But I am facing following error Cannot register 2 metrics with the same name: /tensorflow/api/keras/optimizers in Python. So Here I am Explain to you all the possible solutions here.
Without wasting your time, Let’s start This Article to Solve This Error.
How This Error Occurs ?
I am trying to use TensorFlow library and Whenever I am trying to Run my Python Code But I am facing following error.
W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library ‘cudart64_110.dll’; dlerror: cudart64_110.dll not found
I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
E tensorflow/core/lib/monitoring/collection_registry.cc:77] `Cannot register 2 metrics with the same name: /tensorflow/api/keras/optimizers`
tensorflow.python.framework.errors_impl.
AlreadyExistsError: Another metric with the same name already exists.
How To Solve Cannot register 2 metrics with the same name: /tensorflow/api/keras/optimizers Error ?
How To Solve Cannot register 2 metrics with the same name: /tensorflow/api/keras/optimizers Error ?
To Solve Cannot register 2 metrics with the same name: /tensorflow/api/keras/optimizers Error This is Bug in tensorflow 2.6 So that Just downgrading to tensorflow 2.5 until the issue is resolved in a future update. Now, Your issue must be solved.
Cannot register 2 metrics with the same name: /tensorflow/api/keras/optimizers
To Solve Cannot register 2 metrics with the same name: /tensorflow/api/keras/optimizers Error This is Bug in tensorflow 2.6 So that Just downgrading to tensorflow 2.5 until the issue is resolved in a future update. Now, Your issue must be solved.
Solution 1: downgrading to tensorflow 2.5
This is Bug in tensorflow 2.6 So that Just downgrading to tensorflow 2.5 until the issue is resolved in a future update. Now, Your issue must be solved.
Summary
It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?
Also, Read