[easy] Pass compile_fx only the config patches (#16845)

Signed-off-by: rzou <zou3519@gmail.com>
This commit is contained in:
Richard Zou 2025-04-20 00:25:19 -04:00 committed by GitHub
parent 4b07d36891
commit fe742aef5a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -167,8 +167,7 @@ class InductorAdaptor(CompilerInterface):
compiler_config: Dict[str, Any],
runtime_shape: Optional[int] = None
) -> Tuple[Optional[Callable], Optional[Any]]:
from torch._inductor import config
current_config = config.get_config_copy()
current_config = {}
from torch._inductor.compile_fx import compile_fx
# disable remote cache