#[repr(i32)]pub enum OrtMemType {
OrtMemTypeCPUInput = -2,
OrtMemTypeCPUOutput = -1,
OrtMemTypeDefault = 0,
}Expand description
\brief Memory types for allocated memory, execution provider specific types should be extended in each provider.
Variants§
OrtMemTypeCPUInput = -2
< Any CPU memory used by non-CPU execution provider
OrtMemTypeCPUOutput = -1
< CPU accessible memory outputted by non-CPU execution provider, i.e. CUDA_PINNED
OrtMemTypeDefault = 0
< The default allocator for execution provider
Implementations§
Source§impl OrtMemType
impl OrtMemType
pub const OrtMemTypeCPU: OrtMemType = OrtMemType::OrtMemTypeCPUOutput
Trait Implementations§
Source§impl Clone for OrtMemType
impl Clone for OrtMemType
Source§fn clone(&self) -> OrtMemType
fn clone(&self) -> OrtMemType
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 Debug for OrtMemType
impl Debug for OrtMemType
Source§impl Hash for OrtMemType
impl Hash for OrtMemType
Source§impl PartialEq for OrtMemType
impl PartialEq for OrtMemType
impl Copy for OrtMemType
impl Eq for OrtMemType
impl StructuralPartialEq for OrtMemType
Auto Trait Implementations§
impl Freeze for OrtMemType
impl RefUnwindSafe for OrtMemType
impl Send for OrtMemType
impl Sync for OrtMemType
impl Unpin for OrtMemType
impl UnwindSafe for OrtMemType
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