From b2c4f76cf2818977edf4c9f1a542bcccefdc31a2 Mon Sep 17 00:00:00 2001 From: Yibing Liu Date: Thu, 22 Aug 2019 17:18:25 +0800 Subject: [PATCH] Fix sequence mask in dygraph (#19271) * Fix data parallel & sequence mask in dygraph test=develop * Revert change in data_parallel test=develop --- python/paddle/fluid/layers/nn.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/python/paddle/fluid/layers/nn.py b/python/paddle/fluid/layers/nn.py index 6a217774f77..28f2ae7d986 100644 --- a/python/paddle/fluid/layers/nn.py +++ b/python/paddle/fluid/layers/nn.py @@ -9647,9 +9647,6 @@ def sequence_mask(x, maxlen=None, dtype='int64', name=None): mask = layers.sequence_mask(x=x) """ - assert not in_dygraph_mode(), ( - "sequence layer is not supported in dygraph mode yet.") - helper = LayerHelper('sequence_mask', **locals()) if name is None: out = helper.create_variable_for_type_inference(dtype=dtype) -- GitLab