MCPcopy Create free account
hub / github.com/tensorpack/tensorpack / optimizer

Method optimizer

examples/Char-RNN/char-rnn.py:105–108  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

103 return cost
104
105 def optimizer(self):
106 lr = tf.get_variable('learning_rate', initializer=2e-3, trainable=False)
107 opt = tf.train.AdamOptimizer(lr)
108 return optimizer.apply_grad_processors(opt, [GlobalNormClip(5)])
109
110
111def get_config():

Callers

nothing calls this directly

Calls 2

GlobalNormClipClass · 0.90
get_variableMethod · 0.80

Tested by

no test coverage detected