You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cpp/benchmark/README.md
+4-2
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Benchmarking
2
2
3
-
This is a quick benchmarking application for TRTorch. It lets you run supported TorchScript modules both in JIT and TRT and returns the average runtime and throughput.
3
+
This is a quick benchmarking application for TRTorch. It lets you run supported TorchScript modules both in JIT and TRT and returns the average runtime and throughput.
4
4
5
5
## Compilation / Usage
6
6
@@ -20,12 +20,14 @@ bazel run //cpp/benchmark --cxxopt="-DNDEBUG" --cxxopt="-DJIT" --cxxopt="-DTRT"
20
20
21
21
### Options
22
22
23
-
You can run a module with JIT or TRT via TRTorch in either FP32 or FP16. These options are controlled by preprocessor directives.
23
+
You can run a module with JIT or TRT via TRTorch in either FP32 or FP16. These options are controlled by preprocessor directives.
24
24
25
25
- To enable JIT profiling, add the argument `--cxxopt="-DJIT"`
26
26
27
27
- To enable TRT profiling, add the argument `--cxxopt="-DTRT"`
28
28
29
29
- To enable FP16 execution, add the argument `--cxxopt="-DHALF"`
30
30
31
+
- To also save the TRT engine, add the argument `--cxxopt="-DSAVE_ENGINE"`
32
+
31
33
> It's suggested to also define `--cxxopt="-DNDEBUG"` to supress debug information
0 commit comments