我知道如何在使用tensorboard训练后可视化tensorflow图。现在,是否可以仅可视化图形的前半部分,即不定义训练运算符?
我之所以这么问是因为我犯了个错误:
No gradients provided for any variable, check your graph for ops that do not support gradients, between variables [ ... list of model variables here ... ] and loss Tensor("Mean:0", dtype=float32).
我想检查这个图,找出梯度张量流(双关语)在哪里被破坏。
是的,您可以可视化任何图形。试试这个简单的脚本:
然后跑。。。
。。。你会看到:
因此,您只需创建一个会话就可以将图形写入
FileWriter
,而不必执行任何其他操作。相关问题 更多 >
编程相关推荐