Assign requires shapes of both tensors to match. lhs shape= [32] rhs shape= [64]

Assign requires shapes of both tensors to match. lhs shape= [32] rhs shape= [64]

这是关于一个人脸评分项目中出现的错误,原因是因为这模型中训练和测试的时候网络的参数是不一致的导致的,下面是原来的项目中的网络结构:由于两个网络结构是不一致的所以应该修改为一致的网络结构

Assign requires shapes of both tensors to match. lhs shape= [32] rhs shape= [64]

Assign requires shapes of both tensors to match. lhs shape= [32] rhs shape= [64]