test=develop, accelerate_hs_op and add prefetch with is_sparse

revert-15207-remove_op_handle_lock_and_fix_var
JiabinYang 6 years ago
parent 1a8cbb6799
commit 2e38faa3fe

@ -336,9 +336,7 @@ def embedding(input,
"""
helper = LayerHelper('embedding', **locals())
remote_prefetch = False
if os.environ.get('PADDLE_ENABLE_REMOTE_PREFETCH'):
remote_prefetch = True
remote_prefetch = is_sparse
if remote_prefetch:
assert is_sparse is True and is_distributed is False
w = helper.create_parameter(

Loading…
Cancel
Save