DROO icon indicating copy to clipboard operation
DROO copied to clipboard

AttributeError: module 'tensorflow._api.v1.losses' has no attribute 'binary_crossentropy'

Open zeeno95 opened this issue 3 years ago • 2 comments

#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'

zeeno95 avatar Oct 28 '21 15:10 zeeno95

How to fix above error I found this error in mainTF2 file

zeeno95 avatar Oct 28 '21 15:10 zeeno95

#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.

revenol avatar Nov 03 '21 06:11 revenol