#[repr(i32)]pub enum ExecutionContextAllocationStrategy {
kSTATIC = 0,
kON_PROFILE_CHANGE = 1,
kUSER_MANAGED = 2,
}Expand description
! ! \enum ExecutionContextAllocationStrategy ! ! \brief Different memory allocation behaviors for IExecutionContext. ! ! IExecutionContext requires a block of device memory for internal activation tensors during inference. The user can ! either let the execution context manage the memory in various ways or allocate the memory themselves. ! ! \see ICudaEngine::createExecutionContext() ! \see IExecutionContext::setDeviceMemory() !
Variants§
kSTATIC = 0
!< Default static allocation with the maximum size across all profiles.
kON_PROFILE_CHANGE = 1
!< Reallocate for a profile when it’s selected.
kUSER_MANAGED = 2
!< The user supplies custom allocation to the execution context.
Trait Implementations§
Source§impl Clone for ExecutionContextAllocationStrategy
impl Clone for ExecutionContextAllocationStrategy
Source§fn clone(&self) -> ExecutionContextAllocationStrategy
fn clone(&self) -> ExecutionContextAllocationStrategy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ExternType for ExecutionContextAllocationStrategy
impl ExternType for ExecutionContextAllocationStrategy
Source§impl PartialEq for ExecutionContextAllocationStrategy
impl PartialEq for ExecutionContextAllocationStrategy
Source§fn eq(&self, other: &ExecutionContextAllocationStrategy) -> bool
fn eq(&self, other: &ExecutionContextAllocationStrategy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ExecutionContextAllocationStrategy
impl StructuralPartialEq for ExecutionContextAllocationStrategy
impl UniquePtrTarget for ExecutionContextAllocationStrategy
impl VectorElement for ExecutionContextAllocationStrategy
impl WeakPtrTarget for ExecutionContextAllocationStrategy
Auto Trait Implementations§
impl Freeze for ExecutionContextAllocationStrategy
impl RefUnwindSafe for ExecutionContextAllocationStrategy
impl Send for ExecutionContextAllocationStrategy
impl Sync for ExecutionContextAllocationStrategy
impl Unpin for ExecutionContextAllocationStrategy
impl UnwindSafe for ExecutionContextAllocationStrategy
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