【问题标题】:What does Momentum in name or variable scope of a Faster RCNN variable means?Faster RCNN 变量的名称或变量范围中的 Momentum 是什么意思?
【发布时间】:2017-10-05 05:21:18
【问题描述】:

从 tf.get_collection() 打印在下面的行

Tensor("conv3_1/weights/Momentum/read:0", shape=(3, 3, 128, 256), dtype=float32)
Tensor("conv3_1/biases/Momentum/read:0", shape=(256,), dtype=float32)
Tensor("conv3_2/weights/Momentum/read:0", shape=(3, 3, 256, 256), dtype=float32)
Tensor("conv3_2/biases/Momentum/read:0", shape=(256,), dtype=float32)

【问题讨论】:

    标签: python python-2.7 tensorflow object-detection tensorflow-gpu


    【解决方案1】:

    “Momentum”是MomentumOptimizer 分配的槽的默认名称。

    槽只不过是一组与要训练的变量(模型)相关联的附加变量(不可训练)。

    一旦您知道插槽名称,您就可以向优化器询问它创建的变量(过滤 tf.get_collection() 并在 var.name 中查找“Momentum”):然后您可以使用它们来调试训练算法,对插槽进行统计,...

    参考资料:

    槽位描述:https://github.com/tensorflow/tensorflow/blob/97af82d5327e2e0142d8c572279b5282b7b17d92/tensorflow/python/training/optimizer.py#L235

    命名“动量”:https://github.com/tensorflow/tensorflow/blob/97af82d5327e2e0142d8c572279b5282b7b17d92/tensorflow/python/training/momentum.py#L52

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-08-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多