#[repr(i32)]pub enum OrtMemType {
OrtMemTypeCPUInput = -2,
OrtMemTypeCPUOutput = -1,
OrtMemTypeDefault = 0,
}
Expand description
memory types for allocator, exec provider specific types should be extended in each provider Whenever this struct is updated, please also update the MakeKey function in onnxruntime/core/framework/execution_provider.cc
Variants§
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 copy 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