We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14353d4 commit 3c05f97Copy full SHA for 3c05f97
codeflash/optimization/function_optimizer.py
@@ -1393,10 +1393,9 @@ def establish_original_code_baseline(
1393
code_context=code_context,
1394
)
1395
finally:
1396
- if not self.function_to_optimize.is_async:
1397
- self.write_code_and_helpers(
1398
- self.function_to_optimize_source_code, original_helper_code, self.function_to_optimize.file_path
1399
- )
+ self.write_code_and_helpers(
+ self.function_to_optimize_source_code, original_helper_code, self.function_to_optimize.file_path
+ )
1400
if not behavioral_results:
1401
logger.warning(
1402
f"Couldn't run any tests for original function {self.function_to_optimize.function_name}. SKIPPING OPTIMIZING THIS FUNCTION."
0 commit comments