TensorFlow 拾遗

 1、、Here None in placeholder means that a dimension can be of any length.
 
2、、
 

 3、、

 4、、

5、、

tf.multiply(
    x,
    y,
    name=None
)

Returns x * y element-wise.

tf.matmul(
    a,
    b,
    transpose_a=False,
    transpose_b=False,
    adjoint_a=False,
    adjoint_b=False,
    a_is_sparse=False,
    b_is_sparse=False,
    name=None
)

Multiplies matrix a by matrix b

6、、

Broadcasting
 
===========================================================
 
7、、2020-06-03 as an intern at Alibaba:

build_main_part() 用于构建出静态图 (Variable及Operation), 并在训练过程中不变;
session.run() 一次每个batch跑一个step,run 里面的参数才会参与计算与更新,一般只需要填 train_op 与 loss;
需要在 tf.summary.scalar 中画图的一定要作为 run 的参数;
optimizer.apply_gradients() 与 minimize() 内部 global step都会自增1;

8、、

原文地址:https://www.cnblogs.com/niuxichuan/p/9349203.html