
tensorflow
江浙沪讲吴语
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
TensorFlow 1.x 中查看 TF.tensor 的具体数值的两种方法
由于TensorFlow 1.x 由静态图构成,所以不能直接查看tensor的数值,而使用动态图的TensorFlow 2.x则可以直接查看TensorFlow 1有两中查看方式:第一种方法:import tensorflow.compat.v1 as tftf.disable_v2_behavior()sess = tf.Session()sess.run(tf.global_variables_initializer())tensor = tf.Variable([[1,2]])ses原创 2021-03-27 20:25:47 · 3147 阅读 · 0 评论 -
理解tf.pad
官方文档For each dimension D of input, paddings[D, 0] indicates how many values to add before the contents of tensor in that dimension, and paddings[D, 1] indicates how many values to add after the cont...原创 2019-11-13 21:28:02 · 169 阅读 · 0 评论