File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -178,6 +178,18 @@ def compile(
178
178
179
179
if kwarg_inputs is None :
180
180
kwarg_inputs = {}
181
+
182
+ if "refit" in kwargs .keys ():
183
+ warnings .warn (
184
+ "Refit is deprecated. Please use make_refitable=True if you want to enable refitting of the engine." ,
185
+ DeprecationWarning ,
186
+ stacklevel = 2 ,
187
+ )
188
+ if make_refitable :
189
+ raise ValueError ("Use flag make_refitable only. Flag refit is deprecated." )
190
+ else :
191
+ make_refitable = kwargs ["refit" ]
192
+
181
193
engine_capability = EngineCapability ._from (engine_capability )
182
194
183
195
if torch_executed_modules is not None and torch_executed_modules :
Original file line number Diff line number Diff line change 6
6
from typing import Any , Sequence , Tuple
7
7
8
8
import numpy as np
9
- < << << << HEAD
10
- == == == =
11
9
import tensorrt as trt
12
- > >> >> >> 9 f46d3940 (Implemented basic pipeline for Refitting (#2886))
13
10
import torch
14
11
from torch .export import ExportedProgram
15
12
from torch_tensorrt ._enums import dtype
46
43
)
47
44
from torch_tensorrt .logging import TRT_LOGGER
48
45
49
- < << << << HEAD
50
- import tensorrt as trt
51
-
52
- == == == =
53
- >> >> >> > 9 f46d3940 (Implemented basic pipeline for Refitting (#2886))
54
46
logger = logging .getLogger (__name__ )
55
47
56
48
You can’t perform that action at this time.
0 commit comments