MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / setDummyInt8DynamicRanges

Function setDummyInt8DynamicRanges

samples/common/common.h:581–591  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

579}
580
581inline void setDummyInt8DynamicRanges(const nvinfer1::IBuilderConfig* c, nvinfer1::INetworkDefinition* n)
582{
583 // Set dummy per-tensor dynamic range if Int8 mode is requested.
584 if (c->getFlag(nvinfer1::BuilderFlag::kINT8))
585 {
586 sample::gLogWarning << "Int8 calibrator not provided. Generating dummy per-tensor dynamic range. Int8 accuracy "
587 "is not guaranteed."
588 << std::endl;
589 setAllDynamicRanges(n);
590 }
591}
592
593inline void enableDLA(
594 nvinfer1::IBuilder* builder, nvinfer1::IBuilderConfig* config, int useDLACore, bool allowGPUFallback = true)

Callers

nothing calls this directly

Calls 2

setAllDynamicRangesFunction · 0.85
getFlagMethod · 0.80

Tested by

no test coverage detected