tensorflow初始化报错:

ValueError: You can only pass an initializer function that expects no arguments to its callable when the shape is not fully defined. The given initializer function expects the following args [‘shape’, ‘dtype’, ‘partition_info’]

ValueError: You can only pass an initializer function that expects no arguments to its callable when

ValueError: You can only pass an initializer function that expects no arguments to its callable when
原因:是因为定义维度那一维是取的tensor的最后一维,类型是NoneType,所以直接用这个值去初始化会报错,直接写成数字就可以运行
------------------------------未完待续----------------------------

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-12
  • 2022-12-23
  • 2022-02-07
  • 2022-02-13
  • 2022-12-23
猜你喜欢
  • 2022-01-07
  • 2021-12-16
  • 2021-12-29
  • 2022-12-23
  • 2022-01-18
  • 2022-01-09
  • 2022-03-01
相关资源
相似解决方案