pub enum MemType {
CPUInput,
CPUOutput,
Default,
}
Expand description
Memory types for allocated memory.
Variants§
CPUInput
Any CPU memory used by non-CPU execution provider.
CPUOutput
CPU accessible memory outputted by non-CPU execution provider, i.e. CUDA_PINNED.
Default
The default allocator for an execution provider.
Implementations§
Trait Implementations§
source§impl From<MemType> for OrtMemType
impl From<MemType> for OrtMemType
impl Copy for MemType
Auto Trait Implementations§
impl RefUnwindSafe for MemType
impl Send for MemType
impl Sync for MemType
impl Unpin for MemType
impl UnwindSafe for MemType
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