cbensimon HF Staff commited on
Commit
81bf6fa
·
verified ·
1 Parent(s): 7f791ea

Update optimization.py

Browse files
Files changed (1) hide show
  1. optimization.py +2 -3
optimization.py CHANGED
@@ -89,10 +89,9 @@ def optimize_pipeline_(pipeline: Callable[P, Any], *args: P.args, **kwargs: P.kw
89
  compiled_landscape = aoti_compile(exported_landscape, INDUCTOR_CONFIGS)
90
  print('compiled_landscape', -(t0 - (t0 := datetime.now())))
91
 
92
- compiled_portrait = aoti_compile(exported_portrait, INDUCTOR_CONFIGS)
 
93
  print('compiled_portrait', -(t0 - (t0 := datetime.now())))
94
-
95
- compiled_portrait.weights = None
96
 
97
  return compiled_landscape, compiled_portrait
98
 
 
89
  compiled_landscape = aoti_compile(exported_landscape, INDUCTOR_CONFIGS)
90
  print('compiled_landscape', -(t0 - (t0 := datetime.now())))
91
 
92
+ compiled_portrait = aoti_compile(exported_portrait, INDUCTOR_CONFIGS) # TODO: weights_from=compiled_landscape
93
+ compiled_portrait.weights.clear()
94
  print('compiled_portrait', -(t0 - (t0 := datetime.now())))
 
 
95
 
96
  return compiled_landscape, compiled_portrait
97