Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 746e7cd

Browse files
authored
fix data load error in static mode (PaddlePaddle#55541)
1 parent 44f409c commit 746e7cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/paddle/io/dataloader/worker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ def numpy2lodtensor(arr):
384384
tensor_list = [
385385
numpy2lodtensor(b)
386386
if isinstance(b, np.ndarray)
387-
else b.value().get_tensor()
387+
else b.get_tensor()
388388
for b in batch
389389
]
390390
out_queue.put((idx, tensor_list, structure))

0 commit comments

Comments
 (0)