Assign requires shapes of both tensors to match. lhs shape= [4096,1470] rhs shape= [4096,539]

阅读 21

2023-02-04


Assign requires shapes of both tensors to match. lhs shape= [4096,1470] rhs shape= [4096,539]

  • ​​报错如下​​
  • ​​解决方法​​

报错如下

Assign requires shapes of both tensors to match. lhs shape= [4096,1470] rhs shape= [4096,539]_深度学习

解决方法

笔者报错是由于训练类别与测试类别的配置参数不对应!

  • 将下列代码:
  • 改为(自己训练的数据类别):
  • 即可!


相关推荐

精彩评论(0)

0 0 举报