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

Pick fix warpctx in dygraph mode (#24120)

* change compare op fore_cpu true to false; test=develop

* pick fix warpctc bug in dygrpah mode; test=develop
上级 f7929338
......@@ -611,7 +611,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.
先完成此消息的编辑!
想要评论请 注册