Skip to content

Commit

Permalink
Update torch.py
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfeil authored Jan 30, 2024
1 parent 0ff0200 commit 065eab1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def __init__(self, model_name_or_path, **kwargs):
self.model, logger, disable=self._target_device.type == "mps"
)

if self.device.type == "cuda" and not os.environ.get(
if self._target_device.type == "cuda" and not os.environ.get(
"INFINITY_DISABLE_HALF", ""
):
logger.info(
Expand Down

0 comments on commit 065eab1

Please sign in to comment.