pull/5174/head
WenmuZhou 2022-01-07 08:00:59 +00:00
parent d6afe16579
commit 443de01526
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ class L2Decay(object):
def __init__(self, factor=0.0):
super(L2Decay, self).__init__()
self.coeff = factor
self.coeff = float(factor)
def __call__(self):
return self.coeff