Tensorflow检查点问题

时间:2018-11-10 20:56:54

标签: tensorflow

我已设置https://github.com/tensorflow/nmt进行推理,并已在另一台计算机上以相同的软件配置执行了该操作,但是现在我收到以下错误,但未对代码进行任何修改。我不确定为什么会这样,并且想知道是否有人可以提供帮助?

InvalidArgumentError (see above for traceback): Restoring from checkpoint 
failed. This is most likely due to a mismatch between the current graph and 
the graph from the checkpoint. Please ensure that you have not altered the 
graph expected based on the checkpoint. Original error:

Assign requires shapes of both tensors to match. lhs shape= [36549,1024] rhs 
shape= [36548,1024]
     [[Node: save/Assign_26 = Assign[T=DT_FLOAT, _class= 
["loc:@embeddings/encoder/embedding_encoder"], use_locking=true, 
validate_shape=true, _device="/job:localhost/replica:0/task:0/device:CPU:0"] 
(embeddings/encoder/embedding_encoder, save/RestoreV2:26)]]

0 个答案:

没有答案
相关问题