You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# For non-GPU devices, data is transferred to device (H2D) in advance.
371
371
src=get_tensor(src)
372
-
ifnotdst._is_initialized():
373
-
dst.initialize()
372
+
iflen(src.shape) ==1:
373
+
# TODO (bukejiyu):A recently merged Paddle PR introduced a hang when copying 1-D non-contiguous tensors. This approach serves as a temporary workaround.
0 commit comments