Spaces:
Runtime error
Runtime error
Update optimization.py
Browse files- optimization.py +4 -4
optimization.py
CHANGED
|
@@ -42,14 +42,14 @@ def optimize_pipeline_(pipeline: Callable[P, Any], *args: P.args, **kwargs: P.kw
|
|
| 42 |
|
| 43 |
exported_A = torch.export.export(
|
| 44 |
mod=blocks_A[0],
|
| 45 |
-
args=
|
| 46 |
-
kwargs=
|
| 47 |
)
|
| 48 |
|
| 49 |
exported_B = torch.export.export(
|
| 50 |
mod=blocks_B[0],
|
| 51 |
-
args=
|
| 52 |
-
kwargs=
|
| 53 |
)
|
| 54 |
|
| 55 |
return (
|
|
|
|
| 42 |
|
| 43 |
exported_A = torch.export.export(
|
| 44 |
mod=blocks_A[0],
|
| 45 |
+
args=call_A.args,
|
| 46 |
+
kwargs=call_A.kwargs,
|
| 47 |
)
|
| 48 |
|
| 49 |
exported_B = torch.export.export(
|
| 50 |
mod=blocks_B[0],
|
| 51 |
+
args=call_B.args,
|
| 52 |
+
kwargs=call_B.kwargs,
|
| 53 |
)
|
| 54 |
|
| 55 |
return (
|