TypeError: int() argument must be a string, a bytes-like object or a number, not 'tuple'

在调整网络时遇到一个问题:

  File "D:\python\lib\site-packages\tensorflow_core\python\keras\engine\base_layer.py", line 529, in add_weight
    aggregation=aggregation)
  File "D:\python\lib\site-packages\tensorflow_core\python\training\tracking\base.py", line 712, in _add_variable_with_custom_getter
    **kwargs_for_getter)
  File "D:\python\lib\site-packages\tensorflow_core\python\keras\engine\base_layer_utils.py", line 126, in make_variable
    variable_shape = tensor_shape.TensorShape(shape)
  File "D:\python\lib\site-packages\tensorflow_core\python\framework\tensor_shape.py", line 776, in __init__
    self._dims = [as_dimension(d) for d in dims_iter]
  File "D:\python\lib\site-packages\tensorflow_core\python\framework\tensor_shape.py", line 776, in 
    self._dims = [as_dimension(d) for d in dims_iter]
  File "D:\python\lib\site-packages\tensorflow_core\python\framework\tensor_shape.py", line 718, in as_dimension
    return Dimension(value)
  File "D:\python\lib\site-packages\tensorflow_core\python\framework\tensor_shape.py", line 193, in __init__
    self._value = int(value)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'tuple'

在修改别人代码中遇到的,不知道怎么避开了。待续吧。。。

For Video Recommendation in Deep learning QQ Group 277356808

你可能感兴趣的:(DaLao's,Notebook)