Skip to content

Commit 09a857f

Browse files
authored
Merge pull request #1291 from pytorch/anuragd/float64_truncate_ptq
chore: Truncate long and double for ptq CPP path
2 parents b8a122f + 3b910ca commit 09a857f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/int8/ptq/main.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ torch::jit::Module compile_int8_model(const std::string& data_dir, torch::jit::M
5050
compile_spec.enabled_precisions.insert(torch::kI8);
5151
/// Use the TensorRT Entropy Calibrator
5252
compile_spec.ptq_calibrator = calibrator;
53+
compile_spec.truncate_long_and_double = true;
5354

5455
#ifdef SAVE_ENGINE
5556
std::cout << "Compiling graph to save as TRT engine (/tmp/engine_converted_from_jit.trt)" << std::endl;

0 commit comments

Comments
 (0)