"...git@developer.sourcefind.cn:OpenDAS/mmdetection3d.git" did not exist on "d8425466fc3983aca996f2f1b0480e016db7d9b4"
Commit 1f2f1554 authored by Lei Wang's avatar Lei Wang Committed by LeiWang1999
Browse files

[Refactor] Update set_compile_args to allow None for out_idx parameter (#469)

* Modified the `set_compile_args` method in `AutoTuner` to accept `None` as a valid input for the `out_idx` parameter, enhancing flexibility in argument handling.
parent 46eb4589
...@@ -154,7 +154,7 @@ class AutoTuner: ...@@ -154,7 +154,7 @@ class AutoTuner:
return cls(kernel, configs) return cls(kernel, configs)
def set_compile_args(self, def set_compile_args(self,
out_idx: Union[List[int], int] = -1, out_idx: Union[List[int], int, None] = None,
supply_type: tilelang.TensorSupplyType = tilelang.TensorSupplyType.Auto, supply_type: tilelang.TensorSupplyType = tilelang.TensorSupplyType.Auto,
ref_prog: Callable = None, ref_prog: Callable = None,
supply_prog: Callable = None, supply_prog: Callable = None,
......
...@@ -26,7 +26,7 @@ def jit( ...@@ -26,7 +26,7 @@ def jit(
execution_backend: Literal["dlpack", "ctypes", "cython"] = "cython", execution_backend: Literal["dlpack", "ctypes", "cython"] = "cython",
target: Union[str, Target] = "auto", target: Union[str, Target] = "auto",
verbose: bool = False, verbose: bool = False,
**pass_config_kwargs: Optional[Dict[str, Any]], pass_configs: Optional[Dict[str, Any]] = None,
) -> BaseKernelAdapter: ) -> BaseKernelAdapter:
""" """
A decorator (or decorator factory) that JIT-compiles a given TileLang PrimFunc A decorator (or decorator factory) that JIT-compiles a given TileLang PrimFunc
...@@ -93,7 +93,7 @@ def jit( ...@@ -93,7 +93,7 @@ def jit(
verbose=verbose, verbose=verbose,
execution_backend=execution_backend, execution_backend=execution_backend,
out_idx=out_idx, out_idx=out_idx,
**pass_config_kwargs, pass_configs=pass_configs,
).adapter ).adapter
# If `func` was given, compile it immediately and return the adapter. # If `func` was given, compile it immediately and return the adapter.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment