Fix format double substitution bug: {i}
=> {{i}}
(#886)
The previous `{i}` was silently expanding to the `i` from the enumeration loop on `regular_args` (when it wasn't empty).
This commit is contained in:
committed by
GitHub
parent
0e4691e6dd
commit
44f577984d
@@ -270,7 +270,7 @@ def {self.fn.__name__}({', '.join(self.arg_names)}, grid, num_warps=4, num_stage
|
||||
# build stub signature -- includes arguments that are specialized
|
||||
for i, arg in constants.items():
|
||||
if callable(arg):
|
||||
raise TypeError(f"Callable constexpr at index {i} is not supported")
|
||||
raise TypeError(f"Callable constexpr at index {{i}} is not supported")
|
||||
if not self._call_hook(key, signature, device, constants, num_warps, num_stages, extern_libs, configs):
|
||||
bin = triton.compile(self, signature, device, constants, num_warps, num_stages, extern_libs=extern_libs, configs=configs)
|
||||
if not warmup:
|
||||
|
Reference in New Issue
Block a user