Skip to content

Commit cbbad42

Browse files
committed
delete the modification of SlopeInterceptLayer.
1 parent 08a817e commit cbbad42

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

python/paddle/trainer/config_parser.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2460,15 +2460,9 @@ def __init__(self, name, inputs, device=None):
24602460

24612461
@config_layer('slope_intercept')
24622462
class SlopeInterceptLayer(LayerBase):
2463-
def __init__(self,
2464-
name,
2465-
inputs,
2466-
slope=1.0,
2467-
intercept=0.0,
2468-
device=None,
2469-
**xargs):
2463+
def __init__(self, name, inputs, slope=1.0, intercept=0.0, device=None):
24702464
super(SlopeInterceptLayer, self).__init__(
2471-
name, 'slope_intercept', 0, inputs=inputs, device=device, **xargs)
2465+
name, 'slope_intercept', 0, inputs=inputs, device=device)
24722466
self.config.slope = slope
24732467
self.config.intercept = intercept
24742468
config_assert(len(inputs) == 1, 'SlopeInterceptLayer must have 1 input')

0 commit comments

Comments
 (0)