cbensimon HF Staff commited on
Commit
39286c5
·
verified ·
1 Parent(s): c628e2d

Update optimization.py

Browse files
Files changed (1) hide show
  1. 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=call.args,
46
- kwargs=call.kwargs,
47
  )
48
 
49
  exported_B = torch.export.export(
50
  mod=blocks_B[0],
51
- args=call.args,
52
- kwargs=call.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 (