votes up 3

Duplicate registrations for type (param1)

Package:
Exception Class:
AssertionError

Raise code

registration.identifier = identifier
    if registration.version in version_numbers:
      raise AssertionError(
          "Got multiple registrations with version {} for type {}".format(
              registration.version, identifier))
    version_numbers.add(registration.version)
  if identifier in _REVIVED_TYPE_REGISTRY:
    raise AssertionError(
        "Duplicate registrations for type {}".format(identifier))

  _REVIVED_TYPE_REGISTRY[identifier] = (predicate, versions)
  _TYPE_IDENTIFIERS.append(identifier)


def serialize(obj):
  ""
😲 Agile task management is now easier than calling a taxi. #Tracklify
🙏 Scream for help to Ukraine
Today, 2nd July 2022, Russia continues bombing and firing Ukraine. Don't trust Russia, they are bombing us and brazenly lying in same time they are not doing this 😠, civilians and children are dying too! We are screaming and asking exactly you to help us, we want to survive, our families, children, older ones.
Please spread the information, and ask your governemnt to stop Russia by any means. We promise to work extrahard after survival to make the world safer place for all.

Ways to fix

votes up 1 votes down

>>> import tensorflow as tf

2022-05-15 16:47:19.433480: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found

2022-05-15 16:47:19.433752: 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.

Traceback (most recent call last):

 File "<stdin>", line 1, in <module>

 File "C:\Users\ADMIN\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\tensorflow\__init__.py", line 473, in <module>

  keras._load()

 File "C:\Users\ADMIN\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\tensorflow\python\util\lazy_loader.py", line 41, in _load

  module = importlib.import_module(self.__name__)

 File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\lib\importlib\__init__.py", line 126, in import_module

  return _bootstrap._gcd_import(name[level:], package, level)

 File "C:\Users\ADMIN\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\keras\__init__.py", line 25, in <module>

  from keras import models

 File "C:\Users\ADMIN\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\keras\models\__init__.py", line 18, in <module>

  from keras.engine.functional import Functional

 File "C:\Users\ADMIN\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\keras\engine\functional.py", line 25, in <module>

  from keras.engine import base_layer

 File "C:\Users\ADMIN\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\keras\engine\base_layer.py", line 43, in <module>

  from keras.mixed_precision import loss_scale_optimizer

 File "C:\Users\ADMIN\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\keras\mixed_precision\loss_scale_optimizer.py", line 20, in <module>

  from keras.optimizer_experimental import optimizer as optimizer_experimental

 File "C:\Users\ADMIN\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\keras\optimizer_experimental\optimizer.py", line 649, in <module>

  tf.__internal__.saved_model.load.register_revived_type(

 File "C:\Users\ADMIN\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\tensorflow\python\saved_model\revived_types.py", line 133, in register_revived_type

  raise AssertionError(f"Duplicate registrations for type '{identifier}'")

AssertionError: Duplicate registrations for type 'experimentalOptimizer'

May 15, 2022 HuuNhan1608 answer

Add a possible fix

Please authorize to post fix