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 7d93855 commit 3c293a1Copy full SHA for 3c293a1
kernel_tuner/interface.py
@@ -906,6 +906,9 @@ def tune_kernel_T1(
906
adjusted_strategy_options = {k:v for k, v in strategy_options.items() if k not in filter_keys}
907
optimizer_instance = optimizer_class(**adjusted_strategy_options)
908
strategy = OptAlgWrapper(optimizer_instance)
909
+ if "constraint_aware" not in strategy_options and hasattr(optimizer_instance, "constraint_aware"):
910
+ # if the optimizer has a constraint_aware attribute, set it in the strategy options
911
+ strategy_options["constraint_aware"] = optimizer_instance.constraint_aware
912
913
# set the cache path
914
if cache_filepath is None and "SimulationInput" in kernelspec:
0 commit comments