Update src/pipeline.py
Browse files- src/pipeline.py +1 -1
src/pipeline.py
CHANGED
|
@@ -17,7 +17,7 @@ def clear():
|
|
| 17 |
torch.cuda.reset_max_memory_allocated()
|
| 18 |
torch.cuda.reset_peak_memory_stats()
|
| 19 |
|
| 20 |
-
|
| 21 |
def load_pipeline() -> Pipeline:
|
| 22 |
clear()
|
| 23 |
dtype, device = torch.bfloat16, "cuda"
|
|
|
|
| 17 |
torch.cuda.reset_max_memory_allocated()
|
| 18 |
torch.cuda.reset_peak_memory_stats()
|
| 19 |
|
| 20 |
+
@torch.inference_mode()
|
| 21 |
def load_pipeline() -> Pipeline:
|
| 22 |
clear()
|
| 23 |
dtype, device = torch.bfloat16, "cuda"
|