Skip to content

Commit

Permalink
Implemented basic pipeline for Refitting (#2886)
Browse files Browse the repository at this point in the history
  • Loading branch information
cehongwang committed Jul 12, 2024
1 parent 936f0ae commit 20ac8d7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions py/torch_tensorrt/dynamo/_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,18 @@ def compile(

if kwarg_inputs is None:
kwarg_inputs = {}

if "refit" in kwargs.keys():
warnings.warn(
"Refit is deprecated. Please use make_refitable=True if you want to enable refitting of the engine.",
DeprecationWarning,
stacklevel=2,
)
if make_refitable:
raise ValueError("Use flag make_refitable only. Flag refit is deprecated.")
else:
make_refitable = kwargs["refit"]

engine_capability = EngineCapability._from(engine_capability)

if torch_executed_modules is not None and torch_executed_modules:
Expand Down

0 comments on commit 20ac8d7

Please sign in to comment.