Skip to content

Commit 561c339

Browse files
committed
chore : minor refactor
Signed-off-by: Dheeraj Peri <[email protected]>
1 parent 7461a24 commit 561c339

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tools/perf/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ Note:
108108

109109
Here are the list of `CompileSpec` options that can be provided directly to compile the pytorch module
110110

111-
* `--backends` : Comma separated string of backends. Eg: torch,torch_tensorrt,tensorrt
112-
* `--model` : Name of the model file (Can be a torchscript module or a tensorrt engine (ending in `.plan` extension))
111+
* `--backends` : Comma separated string of backends. Eg: torch,torch_tensorrt, tensorrt or fx2trt
112+
* `--model` : Name of the model file (Can be a torchscript module or a tensorrt engine (ending in `.plan` extension)). If the backend is `fx2trt`, the input should be a Pytorch module (instead of a torchscript module) and the options for model are (`vgg16` | `resnet50` | `efficientnet_b0`)
113113
* `--inputs` : List of input shapes & dtypes. Eg: (1, 3, 224, 224)@fp32 for Resnet or (1, 128)@int32;(1, 128)@int32 for BERT
114114
* `--batch_size` : Batch size
115115
* `--precision` : Comma separated list of precisions to build TensorRT engine Eg: fp32,fp16

tools/perf/perf_run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def load_model(params):
303303
arg_parser = argparse.ArgumentParser(description="Run inference on a model with random input values")
304304
arg_parser.add_argument("--config", type=str, help="Load YAML based configuration file to run the inference. If this is used other params will be ignored")
305305
# The following options are manual user provided settings
306-
arg_parser.add_argument("--backends", type=str, help="Comma separated string of backends. Eg: torch,torch_tensorrt,tensorrt")
306+
arg_parser.add_argument("--backends", type=str, help="Comma separated string of backends. Eg: torch,torch_tensorrt,fx2trt,tensorrt")
307307
arg_parser.add_argument("--model", type=str, help="Name of the model file")
308308
arg_parser.add_argument("--inputs", type=str, help="List of input shapes. Eg: (1, 3, 224, 224)@fp32 for Resnet or (1, 128)@int32;(1, 128)@int32 for BERT")
309309
arg_parser.add_argument("--batch_size", type=int, default=1, help="Batch size to build and run")

0 commit comments

Comments
 (0)