candle_core

Struct MetalStorage

Source
pub struct MetalStorage;

Trait Implementations§

Source§

impl BackendStorage for MetalStorage

Source§

type Device = MetalDevice

Source§

fn try_clone(&self, _: &Layout) -> Result<Self>

Source§

fn dtype(&self) -> DType

Source§

fn device(&self) -> &Self::Device

Source§

fn to_cpu_storage(&self) -> Result<CpuStorage>

Source§

fn affine(&self, _: &Layout, _: f64, _: f64) -> Result<Self>

Source§

fn powf(&self, _: &Layout, _: f64) -> Result<Self>

Source§

fn elu(&self, _: &Layout, _: f64) -> Result<Self>

Source§

fn reduce_op(&self, _: ReduceOp, _: &Layout, _: &[usize]) -> Result<Self>

Source§

fn cmp(&self, _: CmpOp, _: &Self, _: &Layout, _: &Layout) -> Result<Self>

Source§

fn to_dtype(&self, _: &Layout, _: DType) -> Result<Self>

Source§

fn unary_impl<B: UnaryOpT>(&self, _: &Layout) -> Result<Self>

Source§

fn binary_impl<B: BinaryOpT>( &self, _: &Self, _: &Layout, _: &Layout, ) -> Result<Self>

Source§

fn where_cond( &self, _: &Layout, _: &Self, _: &Layout, _: &Self, _: &Layout, ) -> Result<Self>

Source§

fn conv1d( &self, _: &Layout, _: &Self, _: &Layout, _: &ParamsConv1D, ) -> Result<Self>

Source§

fn conv_transpose1d( &self, _l: &Layout, _kernel: &Self, _kernel_l: &Layout, _params: &ParamsConvTranspose1D, ) -> Result<Self>

Source§

fn conv2d( &self, _: &Layout, _: &Self, _: &Layout, _: &ParamsConv2D, ) -> Result<Self>

Source§

fn conv_transpose2d( &self, _l: &Layout, _kernel: &Self, _kernel_l: &Layout, _params: &ParamsConvTranspose2D, ) -> Result<Self>

Source§

fn index_select( &self, _: &Self, _: &Layout, _: &Layout, _: usize, ) -> Result<Self>

Source§

fn gather(&self, _: &Layout, _: &Self, _: &Layout, _: usize) -> Result<Self>

Source§

fn scatter_add( &self, _: &Layout, _: &Self, _: &Layout, _: &Self, _: &Layout, _: usize, ) -> Result<Self>

Source§

fn index_add( &self, _: &Layout, _: &Self, _: &Layout, _: &Self, _: &Layout, _: usize, ) -> Result<Self>

Source§

fn matmul( &self, _: &Self, _: (usize, usize, usize, usize), _: &Layout, _: &Layout, ) -> Result<Self>

Source§

fn copy_strided_src(&self, _: &mut Self, _: usize, _: &Layout) -> Result<()>

Source§

fn copy2d( &self, _: &mut Self, _: usize, _: usize, _: usize, _: usize, _: usize, _: usize, ) -> Result<()>

Source§

fn avg_pool2d( &self, _: &Layout, _: (usize, usize), _: (usize, usize), ) -> Result<Self>

Source§

fn max_pool2d( &self, _: &Layout, _: (usize, usize), _: (usize, usize), ) -> Result<Self>

Source§

fn upsample_nearest1d(&self, _: &Layout, _: usize) -> Result<Self>

Source§

fn upsample_nearest2d(&self, _: &Layout, _: usize, _: usize) -> Result<Self>

Source§

impl Debug for MetalStorage

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize = _

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> ErasedDestructor for T
where T: 'static,