tensorflow
K_Snail
静心学习
展开
-
tensorflow笔记--tensorboard出错:Found more than one metagraph event per run
在命令行中启动 tensorboard 后,会报如下错误:Found more than one graph event per run, or there was a metagraph containing a graph_def, as well as one or more graph events. Overwriting the graph with the newest e...原创 2019-11-25 16:53:58 · 3680 阅读 · 0 评论 -
tensorflow笔记--transpose函数
transpose函数作用是对张量进行转换操作。1、二维张量 参数 perm=[0, 1],0代表二维矩阵的行,1代表二维矩阵的列。参数 perm=[1, 0] 代表将矩阵的行和列进行交换,即矩阵的转置。# 2行3列矩阵x = tf.constant([[1, 3, 5], [2, 4, 6]])tf.transpose(x, perm=[1, 0])# 3行2列矩阵,x = [...原创 2019-09-10 21:52:17 · 525 阅读 · 0 评论