Writes the default algorithm choices made by TensorRT into a file. More...
Public Member Functions | |
int32_t | selectAlgorithms (const nvinfer1::IAlgorithmContext &context, const nvinfer1::IAlgorithm *const *choices, int32_t nbChoices, int32_t *selection) override |
Return value in [0, nbChoices] for a valid algorithm. More... | |
void | reportAlgorithms (const nvinfer1::IAlgorithmContext *const *algoContexts, const nvinfer1::IAlgorithm *const *algoChoices, int32_t nbAlgorithms) noexcept override |
called by TensorRT to report choices it made. More... | |
AlgorithmCacheWriter (const std::string &cacheFileName) | |
Private Attributes | |
std::string | mCacheFileName |
Writes the default algorithm choices made by TensorRT into a file.
|
inline |
|
inlineoverridevirtual |
Return value in [0, nbChoices] for a valid algorithm.
Lets TRT use its default tactic selection method. Writes all the possible choices to the selection buffer and returns the length of it. If BuilderFlag::kSTRICT_TYPES is not set, just returning 0 forces default tactic selection.
Implements nvinfer1::IAlgorithmSelector.
|
inlineoverridevirtualnoexcept |
called by TensorRT to report choices it made.
Writes the TensorRT algorithm choices into a file.
Implements nvinfer1::IAlgorithmSelector.
|
private |