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
release/delete-2.0-beta
hong 5 years ago committed by GitHub
parent f79293387b
commit 8aa095ca4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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]

Loading…
Cancel
Save