Struct candle_core::MetalDevice
source · pub struct MetalDevice;
Trait Implementations§
source§impl BackendDevice for MetalDevice
impl BackendDevice for MetalDevice
type Storage = MetalStorage
fn new(_: usize) -> Result<Self>
fn set_seed(&self, _: u64) -> Result<()>
fn location(&self) -> DeviceLocation
fn same_device(&self, _: &Self) -> bool
fn zeros_impl(&self, _shape: &Shape, _dtype: DType) -> Result<Self::Storage>
fn ones_impl(&self, _shape: &Shape, _dtype: DType) -> Result<Self::Storage>
fn storage_from_cpu_storage(&self, _: &CpuStorage) -> Result<Self::Storage>
fn rand_uniform( &self, _: &Shape, _: DType, _: f64, _: f64 ) -> Result<Self::Storage>
fn rand_normal( &self, _: &Shape, _: DType, _: f64, _: f64 ) -> Result<Self::Storage>
source§impl Clone for MetalDevice
impl Clone for MetalDevice
source§fn clone(&self) -> MetalDevice
fn clone(&self) -> MetalDevice
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 moreAuto Trait Implementations§
impl RefUnwindSafe for MetalDevice
impl Send for MetalDevice
impl Sync for MetalDevice
impl Unpin for MetalDevice
impl UnwindSafe for MetalDevice
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