提交 443de015 编写于 作者: 文幕地方's avatar 文幕地方

fux bug

上级 d6afe165
...@@ -45,7 +45,7 @@ class L2Decay(object): ...@@ -45,7 +45,7 @@ class L2Decay(object):
def __init__(self, factor=0.0): def __init__(self, factor=0.0):
super(L2Decay, self).__init__() super(L2Decay, self).__init__()
self.coeff = factor self.coeff = float(factor)
def __call__(self): def __call__(self):
return self.coeff return self.coeff
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册