Skip to content

Commit

Permalink
fixes 550 (#853)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkgaraujo authored Sep 16, 2023
1 parent c663efd commit 6ad426a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keras_core/trainers/data_adapters/torch_data_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __init__(self, dataloader):

def get_numpy_iterator(self):
for batch in self._dataloader:
yield tuple(tree.map_structure(lambda x: x.numpy(), batch))
yield tuple(tree.map_structure(lambda x: x.cpu().numpy(), batch))

def get_torch_dataloader(self):
return self._dataloader
Expand Down

0 comments on commit 6ad426a

Please sign in to comment.