op
- Nodes in the graph are called ops (short for operations).
An op takes zero or more Tensors, performs some computation, and produces zero or more Tensors.
类比:一个神经元有多个输入,一个或者多个输出。这里的OP可以看作神经元,tensor可以看作输入的数据。 - In TensorFlow terminology, a Tensor is a typed multi-dimensional array.
For example, you can represent a mini-batch of images as a 4-D array of floating point numbers with dimensions [batch, height, width,channels].
tensor是一个数组,每个数组元素是多维的,其实就是一个矩阵。 - 转载
context理解
- 每一段程序都有很多外部变量。只有像Add这种简单的函数才是没有外部变量的。一旦你的一段程序有了外部变量,这段程序就不完整,不能独立运行。你为了使他们运行,就要给所有的外部变量一个一个写一些值进去。这些值的集合就叫上下文。
- 譬如说在C++的lambda表达是里面,[写在这里的就是上下文](int a, int b){ … }。
windows打开tensorboard
conda activate tensorflow
D:
cd D:\code\tensorflow\VGG-cifar10-master\logs
tensorboard --logdir vgg16_logs --host=127.0.0.1
tf.name_scope
tensorflow中的“tf.name_scope()”有什么用?
tensorflow里面name_scope, variable_scope等如何理解?