From 5470c29daafab4d9afd45682a026dd4e298863f1 Mon Sep 17 00:00:00 2001 From: lujun Date: Fri, 29 Mar 2019 13:26:23 +0800 Subject: [PATCH] fix merge for move dir, fix utest error, test=develop --- python/paddle/fluid/dygraph/nn.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/paddle/fluid/dygraph/nn.py b/python/paddle/fluid/dygraph/nn.py index b5d11033c2b..de2c2268bfd 100644 --- a/python/paddle/fluid/dygraph/nn.py +++ b/python/paddle/fluid/dygraph/nn.py @@ -1560,8 +1560,8 @@ class SequenceConv(layers.Layer): bias_attr=None, param_attr=None, act=None): - assert not _in_dygraph_mode(), \ - "SequenceConv is not supported by dynamic graph mode yet!" + assert not _in_dygraph_mode( + ), "SequenceConv is not supported by dynamic graph mode yet!" super(SequenceConv, self).__init__(name_scope) self._num_filters = num_filters self._filter_size = filter_size @@ -1600,8 +1600,8 @@ class RowConv(layers.Layer): future_context_size, param_attr=None, act=None): - assert not _in_dygraph_mode(), \ - "RowConv is not supported by dynamic graph mode yet!" + assert not _in_dygraph_mode( + ), "RowConv is not supported by dynamic graph mode yet!" super(RowConv, self).__init__(name_scope) self._act = act self._param_attr = param_attr -- GitLab