| 579 | } |
| 580 | |
| 581 | inline 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 | |
| 593 | inline void enableDLA( |
| 594 | nvinfer1::IBuilder* builder, nvinfer1::IBuilderConfig* config, int useDLACore, bool allowGPUFallback = true) |
nothing calls this directly
no test coverage detected