Upload handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -15,7 +15,7 @@ if IS_COMPILE:
|
|
| 15 |
|
| 16 |
def compile_pipeline(pipe) -> Any:
|
| 17 |
pipe.transformer.to(memory_format=torch.channels_last)
|
| 18 |
-
pipe.transformer = torch.compile(pipe.transformer, mode="
|
| 19 |
#pipe.vae.to(memory_format=torch.channels_last)
|
| 20 |
#pipe.vae = torch.compile(pipe.vae, mode="reduce-overhead", fullgraph=False, dynamic=False, backend="inductor")
|
| 21 |
return pipe
|
|
|
|
| 15 |
|
| 16 |
def compile_pipeline(pipe) -> Any:
|
| 17 |
pipe.transformer.to(memory_format=torch.channels_last)
|
| 18 |
+
pipe.transformer = torch.compile(pipe.transformer, mode="reduce-overhead", fullgraph=False, dynamic=False, backend="inductor")
|
| 19 |
#pipe.vae.to(memory_format=torch.channels_last)
|
| 20 |
#pipe.vae = torch.compile(pipe.vae, mode="reduce-overhead", fullgraph=False, dynamic=False, backend="inductor")
|
| 21 |
return pipe
|