实例如下所示:
1
2
3
4
|
import numpy as np W_val, b_val = sess.run([weights_tensor, biases_tensor]) np.savetxt( "W.csv" , W_val, delimiter = "," ) np.savetxt( "b.csv" , b_val, delimiter = "," ) |
以上这篇tensorflow 输出权重到csv或txt的实例就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持服务器之家。
原文链接:https://blog.csdn.net/guotong1988/article/details/53692246