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

Function lr_func

examples/basics/cifar-convnet.py:113–116  ·  view source on GitHub ↗
(lr)

Source from the content-addressed store, hash-verified

111 dataset_test = get_data('test', cifar_classnum)
112
113 def lr_func(lr):
114 if lr < 3e-5:
115 raise StopTraining()
116 return lr * 0.31
117 return TrainConfig(
118 model=Model(cifar_classnum),
119 data=QueueInput(dataset_train),

Callers

nothing calls this directly

Calls 1

StopTrainingClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…