add stop_gradient in range_api, test=develop (#19484)

fix_crf_doc
Bai Yifan 6 years ago committed by whs
parent e340df013e
commit 8394699dbb

@ -874,6 +874,7 @@ def range(start, end, step, dtype):
'End': end,
'Step': step},
outputs={'Out': [out]})
out.stop_gradient = True
return out

Loading…
Cancel
Save