python与Tensorflow

Tensorflow——tf.contrib.layers.op

2018-10-31  本文已影响108人  SpareNoEfforts

定义

tf.contrib.layers.optimize_loss(
    loss,
    global_step,
    learning_rate,
    optimizer,
    gradient_noise_scale=None,
    gradient_multipliers=None,
    clip_gradients=None,
    learning_rate_decay_fn=None,
    update_ops=None,
    variables=None,
    name=None,
    summaries=None,
    colocate_gradients_with_ops=False,
    increment_global_step=True
)

给定优化器的损失和参数,返回 training op

参数定义

上一篇下一篇

猜你喜欢

热点阅读