diff --git a/trtx/src/host_memory.rs b/trtx/src/host_memory.rs index 27e3dfa..22fea1f 100644 --- a/trtx/src/host_memory.rs +++ b/trtx/src/host_memory.rs @@ -67,3 +67,8 @@ impl<'builder> Deref for HostMemory<'builder> { self.as_ref() } } + +/// # Safety: +/// +/// This a wrapper around C++ container on the TRT side that is safe to send to another thread +unsafe impl Send for HostMemory<'_> {}