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

revert-22778-infer_var_type
hong 5 years ago committed by GitHub
parent 526a13ff58
commit a8eac7da61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save