DROO
DROO copied to clipboard
AttributeError: module 'tensorflow._api.v1.losses' has no attribute 'binary_crossentropy'
#user = 10, #channel=30000, K=10, decoder = OP, Memory = 1024, Delta = 32
AttributeError Traceback (most recent call last)
2 frames /tensorflow-1.15.2/python3.7/tensorflow_core/python/util/module_wrapper.py in getattr(self, name) 191 def getattr(self, name): 192 try: --> 193 attr = getattr(self._tfmw_wrapped_module, name) 194 except AttributeError: 195 if not self._tfmw_public_apis:
AttributeError: module 'tensorflow._api.v1.losses' has no attribute 'binary_crossentropy'
How to fix above error I found this error in mainTF2 file
#user = 10, #channel=30000, K=10, decoder = OP, Memory = 1024, Delta = 32
AttributeError Traceback (most recent call last) in () 96 training_interval=10, 97 batch_size=128, ---> 98 memory_size=Memory 99 ) 100
2 frames /tensorflow-1.15.2/python3.7/tensorflow_core/python/util/module_wrapper.py in getattr(self, name) 191 def getattr(self, name): 192 try: --> 193 attr = getattr(self._tfmw_wrapped_module, name) 194 except AttributeError: 195 if not self._tfmw_public_apis:
AttributeError: module 'tensorflow._api.v1.losses' has no attribute 'binary_crossentropy'
I notice that your tensorflow version is 1.15.2, other than tensorflow 2.x . Please try the main.py file.