Unverified Commit fc71e815 authored by Hz, Ji's avatar Hz, Ji Committed by GitHub
Browse files

update version of warning notification for `get_default_device` to v4.38 (#27848)

parent 5324bf9c
...@@ -601,7 +601,7 @@ def launch_gradio_demo(tool_class: Tool): ...@@ -601,7 +601,7 @@ def launch_gradio_demo(tool_class: Tool):
def get_default_device(): def get_default_device():
logger.warning( logger.warning(
"`get_default_device` is deprecated and will be replaced with `accelerate`'s `PartialState().default_device` " "`get_default_device` is deprecated and will be replaced with `accelerate`'s `PartialState().default_device` "
"in version 4.36 of 🤗 Transformers. " "in version 4.38 of 🤗 Transformers. "
) )
if not is_torch_available(): if not is_torch_available():
raise ImportError("Please install torch in order to use this tool.") raise ImportError("Please install torch in order to use this tool.")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment