Spaces:
Running
Running
Merge pull request #40 from LightricksResearch/bugfix/fix-device-type-pass
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 |
|