pub enum TorchDevice {
Cuda(usize),
Other(String),
}Variants§
Implementations§
Source§impl TorchDevice
impl TorchDevice
Trait Implementations§
Source§impl Clone for TorchDevice
impl Clone for TorchDevice
Source§fn clone(&self) -> TorchDevice
fn clone(&self) -> TorchDevice
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 TorchDevice
impl Debug for TorchDevice
Source§impl PartialEq for TorchDevice
impl PartialEq for TorchDevice
impl Eq for TorchDevice
impl StructuralPartialEq for TorchDevice
Auto Trait Implementations§
impl Freeze for TorchDevice
impl RefUnwindSafe for TorchDevice
impl Send for TorchDevice
impl Sync for TorchDevice
impl Unpin for TorchDevice
impl UnwindSafe for TorchDevice
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