[Misc] improve warning/assert messages (#32226)

Signed-off-by: cjackal <44624812+cjackal@users.noreply.github.com>
This commit is contained in:
cjackal
2026-01-13 12:11:23 +09:00
committed by GitHub
parent c6bb5b5603
commit 15b33ff064
6 changed files with 19 additions and 19 deletions

View File

@@ -546,7 +546,7 @@ class InductorAdaptor(CompilerInterface):
hash_str, example_inputs, True, False
)
assert inductor_compiled_graph is not None, (
"Inductor cache lookup failed. Please remove"
"Inductor cache lookup failed. Please remove "
f"the cache directory and try again." # noqa
)
elif torch.__version__ >= "2.6":
@@ -557,7 +557,7 @@ class InductorAdaptor(CompilerInterface):
hash_str, example_inputs, True, None, constants
)
assert inductor_compiled_graph is not None, (
"Inductor cache lookup failed. Please remove"
"Inductor cache lookup failed. Please remove "
f"the cache directory and try again." # noqa
)