pub struct IRuntimeCache { /* private fields */ }Expand description
IRuntimeCache
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 [IRuntimeConfig::createRuntimeConfig()]
Implementations§
Source§impl IRuntimeCache
impl IRuntimeCache
Sourcepub fn serialize(self: &IRuntimeCache) -> *mut IHostMemory
pub fn serialize(self: &IRuntimeCache) -> *mut IHostMemory
Serialize the Runtime cache to a stream.
A IHostMemory object that contains the serialized Runtime cache.
Sourcepub unsafe fn deserialize(
self: Pin<&mut IRuntimeCache>,
blob: *const c_void,
size: usize,
) -> bool
pub unsafe fn deserialize( self: Pin<&mut IRuntimeCache>, blob: *const c_void, size: usize, ) -> bool
Deserialize the Runtime cache from a stream that contains serialized Runtime cache.
blobThe serialized Runtime cache.
Sourcepub fn reset(self: Pin<&mut IRuntimeCache>) -> bool
pub fn reset(self: Pin<&mut IRuntimeCache>) -> bool
Reset the Runtime cache. Clears all content within the cache.
Trait Implementations§
Source§impl Drop for IRuntimeCache
impl Drop for IRuntimeCache
Source§impl ExternType for IRuntimeCache
impl ExternType for IRuntimeCache
Source§impl MakeCppStorage for IRuntimeCache
impl MakeCppStorage for IRuntimeCache
Source§unsafe fn allocate_uninitialized_cpp_storage() -> *mut IRuntimeCache
unsafe fn allocate_uninitialized_cpp_storage() -> *mut IRuntimeCache
Allocates heap space for this type in C++ and return a pointer
to that space, but do not initialize that space (i.e. do not
yet call a constructor). Read more
Source§unsafe fn free_uninitialized_cpp_storage(arg0: *mut IRuntimeCache)
unsafe fn free_uninitialized_cpp_storage(arg0: *mut IRuntimeCache)
Frees a C++ allocation which has not yet
had a constructor called. Read more
impl UniquePtrTarget for IRuntimeCache
impl WeakPtrTarget for IRuntimeCache
Auto Trait Implementations§
impl !Freeze for IRuntimeCache
impl !RefUnwindSafe for IRuntimeCache
impl !Send for IRuntimeCache
impl !Sync for IRuntimeCache
impl Unpin for IRuntimeCache
impl UnsafeUnpin for IRuntimeCache
impl UnwindSafe for IRuntimeCache
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more