Improve comment
This commit is contained in:
parent
b839268499
commit
95e5de50f0
@ -3773,7 +3773,8 @@ tensorflow::Status ConvertGraphDefToEngine(
|
||||
builder->setFp16Mode(true);
|
||||
} else if (precision_mode == TrtPrecisionMode::INT8) {
|
||||
// Setting FP16 mode as well allows TRT to also consider FP16 kernels and
|
||||
// use them in situations where they are faster than INT8.
|
||||
// use them in situations where they are faster than INT8 or where INT8 is
|
||||
// not supported for a given layer.
|
||||
builder->setFp16Mode(true);
|
||||
builder->setInt8Mode(true);
|
||||
if (use_calibration) {
|
||||
|
Loading…
Reference in New Issue
Block a user