Skip to content

Commit

Permalink
Update devices.py
Browse files Browse the repository at this point in the history
  • Loading branch information
FNSpd authored Mar 24, 2023
1 parent 280ed8f commit a9eab23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def autocast(disable=False):
if disable:
return contextlib.nullcontext()

if dtype == torch.float32 or shared.cmd_opts.precision == "full" or shared.cmd_opts.upcast_sampling:
if dtype == torch.float32 or shared.cmd_opts.precision == "full":
return contextlib.nullcontext()

return torch.autocast("cuda")
Expand Down

0 comments on commit a9eab23

Please sign in to comment.