Skip to content

Commit 0b455ff

Browse files
Merge pull request NVIDIA#748 from hXl3s/RN50/argparse_fix
Minor fixes in ConvNets
2 parents a095658 + c9846ca commit 0b455ff

File tree

2 files changed

+0
-46
lines changed

2 files changed

+0
-46
lines changed

PyTorch/Classification/ConvNets/triton/deployer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ def initialize_model(args):
6161
model.load_state_dict(
6262
{k.replace("module.", ""): v for k, v in state_dict.items()}
6363
)
64-
model.load_state_dict(state_dict)
6564
return model.half() if args.fp16 else model
6665

6766

TensorFlow/Classification/ConvNets/utils/cmdline_helper.py

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -173,51 +173,6 @@ def parse_cmdline(available_arch):
173173
help="Quantize weights and activations during training using symmetric quantization."
174174
)
175175

176-
p.add_argument(
177-
'--finetune_checkpoint',
178-
required=False,
179-
default=None,
180-
type=str,
181-
help="Path to pre-trained checkpoint which will be used for fine-tuning"
182-
)
183-
184-
_add_bool_argument(
185-
parser=p, name="use_final_conv", default=False, required=False, help="Use cosine learning rate schedule."
186-
)
187-
188-
p.add_argument(
189-
'--quant_delay',
190-
type=int,
191-
default=0,
192-
required=False,
193-
help="Number of steps to be run before quantization starts to happen"
194-
)
195-
196-
_add_bool_argument(
197-
parser=p,
198-
name="quantize",
199-
default=False,
200-
required=False,
201-
help="Quantize weights and activations during training. (Defaults to Assymmetric quantization)"
202-
)
203-
204-
_add_bool_argument(
205-
parser=p,
206-
name="use_qdq",
207-
default=False,
208-
required=False,
209-
help="Use QDQV3 op instead of FakeQuantWithMinMaxVars op for quantization. QDQv3 does only scaling"
210-
)
211-
212-
_add_bool_argument(
213-
parser=p,
214-
name="symmetric",
215-
default=False,
216-
required=False,
217-
help="Quantize weights and activations during training using symmetric quantization."
218-
)
219-
220-
221176
p.add_argument(
222177
'--log_filename',
223178
type=str,

0 commit comments

Comments
 (0)