Enum ort::memory::AllocationDevice
source · pub enum AllocationDevice {
CPU,
CUDA,
CUDAPinned,
CANN,
CANNPinned,
DirectML,
OpenVINOCPU,
OpenVINOGPU,
}
Variants§
Implementations§
Trait Implementations§
source§impl Clone for AllocationDevice
impl Clone for AllocationDevice
source§fn clone(&self) -> AllocationDevice
fn clone(&self) -> AllocationDevice
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 AllocationDevice
impl Debug for AllocationDevice
source§impl From<&str> for AllocationDevice
impl From<&str> for AllocationDevice
source§impl PartialEq for AllocationDevice
impl PartialEq for AllocationDevice
source§fn eq(&self, other: &AllocationDevice) -> bool
fn eq(&self, other: &AllocationDevice) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AllocationDevice
impl Eq for AllocationDevice
impl StructuralEq for AllocationDevice
impl StructuralPartialEq for AllocationDevice
Auto Trait Implementations§
impl RefUnwindSafe for AllocationDevice
impl Send for AllocationDevice
impl Sync for AllocationDevice
impl Unpin for AllocationDevice
impl UnwindSafe for AllocationDevice
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