未验证 提交 b2c4f76c 编写于 作者: Y Yibing Liu 提交者: GitHub

Fix sequence mask in dygraph (#19271)

* Fix data parallel & sequence mask in dygraph

test=develop

* Revert change in data_parallel

test=develop
上级 4278518f
...@@ -9647,9 +9647,6 @@ def sequence_mask(x, maxlen=None, dtype='int64', name=None): ...@@ -9647,9 +9647,6 @@ def sequence_mask(x, maxlen=None, dtype='int64', name=None):
mask = layers.sequence_mask(x=x) 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()) helper = LayerHelper('sequence_mask', **locals())
if name is None: if name is None:
out = helper.create_variable_for_type_inference(dtype=dtype) out = helper.create_variable_for_type_inference(dtype=dtype)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册