当前位置:   article > 正文

tensorflow2.0:ValueError: Operands could not be broadcast together with shapes_keras 'together with shapes ' + str(shape1) + ' '

keras 'together with shapes ' + str(shape1) + ' ' + str(shape2))
  1. Traceback (most recent call last):
  2. File "F:/sosoon/PaddlePorject/tf2/CIRFA100resnet.py", line 134, in <module>
  3. model.build(input_shape=(None, 32, 32, 3))
  4. File "D:\setup\Anaconda\envs\paddle\lib\site-packages\tensorflow_core\python\keras\engine\network.py", line 673, in build
  5. self.call(x, **kwargs)
  6. File "F:/sosoon/PaddlePorject/tf2/CIRFA100resnet.py", line 65, in call
  7. x = self.layer2(x)
  8. File "D:\setup\Anaconda\envs\paddle\lib\site-packages\keras\backend\tensorflow_backend.py", line 75, in symbolic_fn_wrapper
  9. return func(*args, **kwargs)
  10. File "D:\setup\Anaconda\envs\paddle\lib\site-packages\keras\engine\base_layer.py", line 463, in __call__
  11. self.build(unpack_singleton(input_shapes))
  12. File "D:\setup\Anaconda\envs\paddle\lib\site-packages\keras\engine\sequential.py", line 222, in build
  13. x = layer(x)
  14. File "D:\setup\Anaconda\envs\paddle\lib\site-packages\keras\backend\tensorfl
声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:【wpsshop博客】
推荐阅读
  

闽ICP备14008679号