Crossin的编程教室

标题: 自学小白求助division by zero [打印本页]

作者: 瓜皮    时间: 2018-10-22 09:28
标题: 自学小白求助division by zero
C:\Users\lenovo\AppData\Local\Programs\Python\Python36\python.exe E:/pywork/test.py
2018-10-22 09:10:17.752695: I T:\src\github\tensorflow\tensorflow\core\platform\cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
Traceback (most recent call last):
  File "E:/pywork/test.py", line 151, in <module>
    print("   train loss: %f" % (train_loss / n_batch))
ZeroDivisionError: division by zero


代码原网址:https://www.cnblogs.com/denny402/p/6931338.html


作者: 瓜皮    时间: 2018-10-22 09:51
跪求  路过的大神随手拨开云雾
作者: crossin先生    时间: 2018-10-22 18:10
瓜皮 发表于 2018-10-22 09:51
跪求  路过的大神随手拨开云雾

n_batch 为0
0不能作为除数




欢迎光临 Crossin的编程教室 (https://bbs.crossincode.com/) Powered by Discuz! X2.5