Skip to content

Commit

Permalink
Fixed issue with supported devices and dtypes on the gpu by adding gp…
Browse files Browse the repository at this point in the history
…u back to the valid devices (ivy-llc#10721)
  • Loading branch information
vedpatwardhan authored Feb 21, 2023
1 parent f45290f commit b2d19eb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions ivy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,9 @@ class Node(str):
# ToDo: add gpu and tpu for valid devices when we test for them
all_devices = ("cpu", "gpu", "tpu")

valid_devices = ("cpu",)
valid_devices = ("cpu", "gpu")

invalid_devices = ("gpu", "tpu")
invalid_devices = ("tpu",)

# data types as string (to be used by Dtype classes)
# any changes here should also be reflected in the data type initialisation underneath
Expand Down
4 changes: 2 additions & 2 deletions ivy/functional/backends/jax/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@


# devices
valid_devices = ("cpu",)
valid_devices = ("cpu", "gpu")

invalid_devices = ("gpu", "tpu")
invalid_devices = ("tpu",)


# native data types
Expand Down
4 changes: 2 additions & 2 deletions ivy/functional/backends/tensorflow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@


# devices
valid_devices = ("cpu",)
valid_devices = ("cpu", "gpu")

invalid_devices = ("gpu", "tpu")
invalid_devices = ("tpu",)


# native data types
Expand Down
4 changes: 2 additions & 2 deletions ivy/functional/backends/torch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@


# devices
valid_devices = ("cpu",)
valid_devices = ("cpu", "gpu")

invalid_devices = ("gpu", "tpu")
invalid_devices = ("tpu",)


# native data types
Expand Down

0 comments on commit b2d19eb

Please sign in to comment.