We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b8a122f + 3b910ca commit 09a857fCopy full SHA for 09a857f
examples/int8/ptq/main.cpp
@@ -50,6 +50,7 @@ torch::jit::Module compile_int8_model(const std::string& data_dir, torch::jit::M
50
compile_spec.enabled_precisions.insert(torch::kI8);
51
/// Use the TensorRT Entropy Calibrator
52
compile_spec.ptq_calibrator = calibrator;
53
+ compile_spec.truncate_long_and_double = true;
54
55
#ifdef SAVE_ENGINE
56
std::cout << "Compiling graph to save as TRT engine (/tmp/engine_converted_from_jit.trt)" << std::endl;
0 commit comments