From 8ec573490de41e1e3ccb0b23074dda7e8624a188 Mon Sep 17 00:00:00 2001 From: zhangxuefei Date: Tue, 30 Apr 2019 18:55:56 +0800 Subject: [PATCH] BUG that lack the defination of linear_warmup_decay function --- paddlehub/finetune/strategy.py | 1 - 1 file changed, 1 deletion(-) diff --git a/paddlehub/finetune/strategy.py b/paddlehub/finetune/strategy.py index ae5e88f1..31c0baa3 100644 --- a/paddlehub/finetune/strategy.py +++ b/paddlehub/finetune/strategy.py @@ -117,7 +117,6 @@ class AdamWeightDecayStrategy(DefaultStrategy): def execute(self, loss, main_program, data_reader, config): # calculate wamrup step dev_count = self._get_dev_count(config) - num_train_examples = data_reader.get_num_examples(phase='train') data_reader.data_generator( batch_size=config.batch_size, phase='train', shuffle=True) data_reader.data_generator( -- GitLab