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

Method setPersistentCacheLimit

include/NvInferRuntime.h:3475–3478  ·  view source on GitHub ↗

\brief Set the maximum size for persistent cache usage. This function sets the maximum persistent L2 cache that this execution context may use for activation caching. Activation caching is not supported on all architectures - see "How TensorRT uses Memory" in the developer guide for details \param size the size of persistent cache limitation in bytes. The default is 0 Bytes. \see getPersistentC

Source from the content-addressed store, hash-verified

3473 //!
3474 //! \see getPersistentCacheLimit
3475 void setPersistentCacheLimit(size_t size) noexcept
3476 {
3477 mImpl->setPersistentCacheLimit(size);
3478 }
3479
3480 //!
3481 //! \brief Get the maximum size for persistent cache usage.

Callers 1

setUpInferenceFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected