Unverified Commit 35358a2d authored by YiYi Xu's avatar YiYi Xu Committed by GitHub
Browse files

fix offload test (#7868)



fix
Co-authored-by: default avatarDhruv Nair <dhruv.nair@gmail.com>
parent 818f7607
...@@ -1375,7 +1375,7 @@ class PipelineTesterMixin: ...@@ -1375,7 +1375,7 @@ class PipelineTesterMixin:
output_without_offload = pipe(**inputs)[0] output_without_offload = pipe(**inputs)[0]
pipe.enable_sequential_cpu_offload() pipe.enable_sequential_cpu_offload()
assert pipe._execution_device.type == pipe._offload_device.type assert pipe._execution_device.type == "cuda"
inputs = self.get_dummy_inputs(generator_device) inputs = self.get_dummy_inputs(generator_device)
output_with_offload = pipe(**inputs)[0] output_with_offload = pipe(**inputs)[0]
...@@ -1440,7 +1440,7 @@ class PipelineTesterMixin: ...@@ -1440,7 +1440,7 @@ class PipelineTesterMixin:
output_without_offload = pipe(**inputs)[0] output_without_offload = pipe(**inputs)[0]
pipe.enable_model_cpu_offload() pipe.enable_model_cpu_offload()
assert pipe._execution_device.type == pipe._offload_device.type assert pipe._execution_device.type == "cuda"
inputs = self.get_dummy_inputs(generator_device) inputs = self.get_dummy_inputs(generator_device)
output_with_offload = pipe(**inputs)[0] output_with_offload = pipe(**inputs)[0]
......
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