tensorflow divide with 0/0=:0

北城余情 提交于 2019-12-12 11:05:00

问题


I'd like division to return 0. for 0./0. instead of NaN or an error in a tensorflow application.

I know how I can do this in numpy [1], [2], but I'm new to tensorflow.

How can this be achieved?

来源:https://stackoverflow.com/questions/45466142/tensorflow-divide-with-0-0-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!