Skip to content

Commit

Permalink
Merge pull request #1291 from pytorch/anuragd/float64_truncate_ptq
Browse files Browse the repository at this point in the history
chore: Truncate long and double for ptq CPP path
  • Loading branch information
peri044 authored Aug 19, 2022
2 parents b8a122f + 3b910ca commit 09a857f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/int8/ptq/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ torch::jit::Module compile_int8_model(const std::string& data_dir, torch::jit::M
compile_spec.enabled_precisions.insert(torch::kI8);
/// Use the TensorRT Entropy Calibrator
compile_spec.ptq_calibrator = calibrator;
compile_spec.truncate_long_and_double = true;

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

0 comments on commit 09a857f

Please sign in to comment.