简体   繁体   English

Tensorflow运行时错误调试

[英]Tensorflow runtime error debug

How to debug a runtime error in Tensorflow? 如何在Tensorflow中调试运行时错误?

I am new to tensorflow and would appreciate any help. 我是tensorflow的新手,不胜感激。 I am executing a code and after executing the line sess.run() it throws an error. 我正在执行代码,并在执行sess.run()行后引发错误。 I am using Tensorflow 1.0 and python 3.5.2 我正在使用Tensorflow 1.0和python 3.5.2

Below is the snippet of error: 以下是错误摘要:

INFO:tensorflow:starting run_training
INFO:tensorflow:running training step...
F c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\tensor.h:582] Check failed: new_num_elements == NumElements() (160 vs. 81920)

I believe the error with values (160 vs. 81920) is due to some variable being initialized with 160 values and now 81920 values are passed to it. 我相信值(160与81920)的错误是由于某些变量被初始化为160值,现在将81920值传递给它。 But I am not able to zero down on which exact tensor it is. 但是我无法确定确切的张量为零。 There is now line number or any clue mentioned in the error. 现在有行号或错误中提到的任何线索。

Any help would be much appreciated. 任何帮助将非常感激。

Disclaimer: I dont have enough credit to post this as a comment 免责声明:我没有足够的信誉来发表此评论

You better add the code in the question or the good people of this great community will devote you out of here. 您最好将代码添加到问题中,否则这个伟大社区的好人将把您奉献给您。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM