未验证 提交 a8eac7da 编写于 作者: H hong 提交者: GitHub

fix warpctc bug in dygraph mode; test=develop (#24119)

上级 526a13ff
......@@ -617,7 +617,7 @@ def warpctc(input,
"""
helper = LayerHelper('warpctc', **locals())
this_inputs = {'Logits': [input], 'Label': [label]}
if input_length and label_length:
if input_length is not None and label_length is not None:
this_inputs['LogitsLength'] = [input_length]
this_inputs['LabelLength'] = [label_length]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册