From 31b697dfb9190b5d7c600c9cb8ff350110cc5f64 Mon Sep 17 00:00:00 2001 From: Steffy-zxf <48793257+Steffy-zxf@users.noreply.github.com> Date: Fri, 19 Apr 2019 15:11:57 +0800 Subject: [PATCH] Fix the super compatible code between python2.x and python3.x (#25) --- paddlehub/finetune/strategy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddlehub/finetune/strategy.py b/paddlehub/finetune/strategy.py index c01ba5fe..01370b53 100644 --- a/paddlehub/finetune/strategy.py +++ b/paddlehub/finetune/strategy.py @@ -92,7 +92,7 @@ class AdamWeightDecayStrategy(DefaultStrategy): warmup_proportion=0.0, weight_decay=0.01, optimizer_name=None): - super().__init__( + super(AdamWeightDecayStrategy, self).__init__( learning_rate=learning_rate, optimizer_name=optimizer_name) # check strategy correctness if lr_scheduler not in ["linear_decay", "noam_decay"]: -- GitLab