Skip to content

Commit c72df2b

Browse files
committed
fix syntax error
1 parent b738d1d commit c72df2b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

PyTorch/SpeechRecognition/Jasper/trt/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ NUM_STEPS: Number of inference steps. If -1 runs inference on entire dataset (de
229229
BATCH_SIZE: data batch size (default: 64)
230230
NUM_FRAMES: cuts/pads all pre-processed feature tensors to this length. 100 frames ~ 1 second of audio (default: 512)
231231
FORCE_ENGINE_REBUILD: boolean that indicates whether an already-built TensorRT engine of equivalent precision, batch-size, and number of frames should not be used. Engines are specific to the GPU, library versions, TensorRT versions, and CUDA versions they were built in and cannot be used in a different environment. (default: "true")
232-
USE_DYNAMIC_SHAPE: if 'yes' uses dynamic shapes (default: ‘yes’)
232+
USE_DYNAMIC_SHAPE: if 'yes' uses dynamic shapes (default: ‘yes’). Dynamic shape is always preferred since it allows to reuse engines.
233233
```
234234
235235
The complete list of parameters available for `trt/scripts/trt_inference.sh` is the same as `trt/scripts/trt_inference_benchmark.sh` only with different default input arguments. In the following, only the parameters with different default values are listed:

PyTorch/SpeechRecognition/Jasper/trt/perfutils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def get_onnx(path, acoustic_model, args):
105105
'''
106106

107107
dynamic_dim = 0
108-
if args.dynamic_shape:
108+
if not args.static_shape:
109109
dynamic_dim = 1 if args.transpose else 2
110110

111111

0 commit comments

Comments
 (0)