Spaces:
Runtime error
Runtime error
daniel shalem
commited on
Commit
·
d675fab
1
Parent(s):
34518f8
Bugfix: pass device type for autocast.
Browse files
xora/pipelines/pipeline_xora_video.py
CHANGED
|
@@ -1015,7 +1015,7 @@ class XoraVideoPipeline(DiffusionPipeline):
|
|
| 1015 |
"Mixed precision is not supported yet on XLA devices."
|
| 1016 |
)
|
| 1017 |
|
| 1018 |
-
context_manager = torch.autocast(device, dtype=torch.bfloat16)
|
| 1019 |
else:
|
| 1020 |
context_manager = nullcontext() # Dummy context manager
|
| 1021 |
|
|
|
|
| 1015 |
"Mixed precision is not supported yet on XLA devices."
|
| 1016 |
)
|
| 1017 |
|
| 1018 |
+
context_manager = torch.autocast(device.type, dtype=torch.bfloat16)
|
| 1019 |
else:
|
| 1020 |
context_manager = nullcontext() # Dummy context manager
|
| 1021 |
|