Skip to content

Commit

Permalink
Set HAS_GPU = False in dispatch if relevant pkgs fail to import (#…
Browse files Browse the repository at this point in the history
…112)

Have tested this fix locally and it works. Now it is possible to import nvtabular without GPU libraries installed
  • Loading branch information
oliverholworthy authored Aug 3, 2022
1 parent 1354dcf commit ad142af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion merlin/core/dispatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
from cudf.utils.dtypes import is_string_dtype as cudf_is_string_dtype

except ImportError:
pass
HAS_GPU = False


try:
Expand Down

0 comments on commit ad142af

Please sign in to comment.