From cbbad4202ae10e0ef9851861c77eab820bf6cce3 Mon Sep 17 00:00:00 2001 From: caoying03 Date: Wed, 28 Dec 2016 16:20:59 +0800 Subject: [PATCH] delete the modification of SlopeInterceptLayer. --- python/paddle/trainer/config_parser.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/python/paddle/trainer/config_parser.py b/python/paddle/trainer/config_parser.py index e0a43f6b6e1..b88853ea004 100644 --- a/python/paddle/trainer/config_parser.py +++ b/python/paddle/trainer/config_parser.py @@ -2460,15 +2460,9 @@ class PowerLayer(LayerBase): @config_layer('slope_intercept') class SlopeInterceptLayer(LayerBase): - def __init__(self, - name, - inputs, - slope=1.0, - intercept=0.0, - device=None, - **xargs): + def __init__(self, name, inputs, slope=1.0, intercept=0.0, device=None): super(SlopeInterceptLayer, self).__init__( - name, 'slope_intercept', 0, inputs=inputs, device=device, **xargs) + name, 'slope_intercept', 0, inputs=inputs, device=device) self.config.slope = slope self.config.intercept = intercept config_assert(len(inputs) == 1, 'SlopeInterceptLayer must have 1 input') -- GitLab