Skip to content

Commit

Permalink
Fix the get_device() function for the torch backend (keras-team#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
tirthasheshpatel authored Jun 30, 2023
1 parent 638a4fb commit 87b97e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keras_core/backend/torch/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def get_default_device():
def get_device():
device = global_state.get_global_attribute("torch_device", None)
if device is None:
get_default_device()
return get_default_device()
return device


Expand Down

0 comments on commit 87b97e5

Please sign in to comment.