MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / optimizer

Method optimizer

examples/SuperResolution/enet-pat.py:214–218  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

212 self.collect_variables()
213
214 def optimizer(self):
215 lr = tf.get_variable(
216 'learning_rate', initializer=1e-4, trainable=False)
217 opt = tf.train.AdamOptimizer(lr)
218 return opt
219
220
221def apply(model_path, lowres_path="", output_path='.'):

Callers 1

get_optimizerMethod · 0.45

Calls 1

get_variableMethod · 0.80

Tested by

no test coverage detected