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

Method optimizer

examples/CTC-TIMIT/train-timit.py:70–74  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

68 return cost
69
70 def optimizer(self):
71 lr = tf.get_variable('learning_rate', initializer=5e-3, trainable=False)
72 opt = tf.train.AdamOptimizer(lr, epsilon=1e-3)
73 return optimizer.apply_grad_processors(
74 opt, [GlobalNormClip(5), SummaryGradient()])
75
76
77def get_data(path, isTrain, stat_file):

Callers

nothing calls this directly

Calls 3

GlobalNormClipClass · 0.90
SummaryGradientClass · 0.90
get_variableMethod · 0.80

Tested by

no test coverage detected