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