A class for Runtime cache currently used for TensorRT JIT compilation. This cache can be serialized and deserialized to support persistence in disk files.
More...
#include <NvInferRuntime.h>
|
virtual | ~IRuntimeCache () noexcept=default |
|
IHostMemory * | serialize () const noexcept |
| Serialize the Runtime cache to a stream. More...
|
|
bool | deserialize (void const *blob, size_t size) noexcept |
| Deserialize the Runtime cache from a stream that contains serialized Runtime cache. More...
|
|
bool | reset () noexcept |
| Reset the Runtime cache. Clears all content within the cache. More...
|
|
|
apiv::VRuntimeCache * | mImpl |
|
A class for Runtime cache currently used for TensorRT JIT compilation. This cache can be serialized and deserialized to support persistence in disk files.
- See also
- IRuntimeConfig::createRuntimeConfig()
◆ ~IRuntimeCache()
virtual nvinfer1::IRuntimeCache::~IRuntimeCache |
( |
| ) |
|
|
virtualdefaultnoexcept |
◆ deserialize()
bool nvinfer1::IRuntimeCache::deserialize |
( |
void const * |
blob, |
|
|
size_t |
size |
|
) |
| |
|
inlinenoexcept |
Deserialize the Runtime cache from a stream that contains serialized Runtime cache.
- Parameters
-
blob | The serialized Runtime cache. |
◆ reset()
bool nvinfer1::IRuntimeCache::reset |
( |
| ) |
|
|
inlinenoexcept |
Reset the Runtime cache. Clears all content within the cache.
◆ serialize()
IHostMemory * nvinfer1::IRuntimeCache::serialize |
( |
| ) |
const |
|
inlinenoexcept |
Serialize the Runtime cache to a stream.
- Returns
- A IHostMemory object that contains the serialized Runtime cache.
◆ mImpl
apiv::VRuntimeCache* nvinfer1::IRuntimeCache::mImpl |
|
protected |
The documentation for this class was generated from the following file: