修改vim编辑器方便tensorflow的神经网络中对vim的使用
vim ~/.vimrc
set ts = 4 # 使Tab键等效为四个空格
set nu 使vim显示行号,nu 是 number 缩写
如
import tensorflow as tf
a = tf.constant([1.0, 2.0])
b = tf.constant([3.0, 4.0])
result = a+b
print ("result")
# 显示如下:
Tensor("add:0", shape = (2, ), dtype = float32)
add | 0 | shape | 2 | dtype |
---|---|---|---|---|
节点名 | 第0个输出 | 维度 | 一维数组长度为2 | 数据类型 |