Skip to content

Commit d121da6

Browse files
committed
Merge remote-tracking branch 'origin/master' into hyperparametertuning_custom_strategies
2 parents 160d4b7 + d586190 commit d121da6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

kernel_tuner/util.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def check_restriction(restrict, params: dict) -> bool:
304304
return restrict(**selected_params)
305305
# otherwise, raise an error
306306
else:
307-
raise ValueError(f"Unkown restriction type {type(restrict)} ({restrict})")
307+
raise ValueError(f"Unknown restriction type {type(restrict)} ({restrict})")
308308

309309

310310
def check_restrictions(restrictions, params: dict, verbose: bool) -> bool:
@@ -372,7 +372,7 @@ def f_restrict(p):
372372

373373
elif isinstance(restrict, (InSetConstraint, NotInSetConstraint, SomeInSetConstraint, SomeNotInSetConstraint)):
374374
raise NotImplementedError(
375-
f"Restriction of the type {type(restrict)} is explicitely not supported in backwards compatibility mode, because the behaviour is too complex. Please rewrite this constraint to a function to use it with this algorithm."
375+
f"Restriction of the type {type(restrict)} is explicitly not supported in backwards compatibility mode, because the behaviour is too complex. Please rewrite this constraint to a function to use it with this algorithm."
376376
)
377377
else:
378378
raise TypeError(f"Unrecognized restriction {restrict}")
@@ -617,7 +617,7 @@ def get_total_timings(results, env, overhead_time):
617617
total_verification_time += result["verification_time"]
618618
total_benchmark_time += result["benchmark_time"]
619619

620-
# add the seperate times to the environment dict
620+
# add the separate time values to the environment dict
621621
env["total_framework_time"] = total_framework_time
622622
env["total_strategy_time"] = total_strategy_time
623623
env["total_compile_time"] = total_compile_time
@@ -793,7 +793,7 @@ def prepare_kernel_string(kernel_name, kernel_string, params, grid, threads, blo
793793
v = replace_param_occurrences(v, params)
794794

795795
if not k.isidentifier():
796-
raise ValueError("name is not a valid identifier: {k}")
796+
raise ValueError(f"name is not a valid identifier: {k}")
797797

798798
# Escape newline characters
799799
v = str(v)

0 commit comments

Comments
 (0)