Skip to content

Commit

Permalink
[cherry-pick]fix data load error in static mode (#55545)
Browse files Browse the repository at this point in the history
  • Loading branch information
USTCKAY committed Jul 20, 2023
1 parent 6a2db61 commit 7ed818f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/paddle/io/dataloader/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ def numpy2lodtensor(arr):
tensor_list = [
numpy2lodtensor(b)
if isinstance(b, np.ndarray)
else b.value().get_tensor()
else b.get_tensor()
for b in batch
]
out_queue.put((idx, tensor_list, structure))
Expand Down

0 comments on commit 7ed818f

Please sign in to comment.