您的位置: 首页 > 文章 > 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] 分类: 文章 • 2024-08-12 14:00:22 Assign requires shapes of both tensors to match. lhs shape= [4096,1470] rhs shape= [4096,539] 报错如下 解决方法 报错如下 解决方法 笔者报错是由于训练类别与测试类别的配置参数不对应! 将下列代码: 改为(自己训练的数据类别): 即可!