pub struct Int;Trait Implementations§
Source§impl<D: Device> BytesDTypeKind<D> for Int
impl<D: Device> BytesDTypeKind<D> for Int
Source§impl<D: Device> ConstructDTypeKind<D> for Int
impl<D: Device> ConstructDTypeKind<D> for Int
fn zeros_dispatch( shape: &Shape, device: &D, dtype: IntDType, ) -> Result<Self::Storage>
fn ones_dispatch( shape: &Shape, device: &D, dtype: IntDType, ) -> Result<Self::Storage>
fn full_dispatch( shape: &Shape, value: Self::Scalar, device: &D, dtype: IntDType, ) -> Result<Self::Storage>
Source§impl<D: Device> IndexingDTypeKind<D> for Int
impl<D: Device> IndexingDTypeKind<D> for Int
fn index_select_dispatch( x: &Self::Storage, x_l: &Layout, idx: &D::IntStorage, idx_l: &Layout, dim: usize, ) -> Result<(Self::Storage, Shape)>
fn gather_dispatch( x: &Self::Storage, x_l: &Layout, idx: &D::IntStorage, idx_l: &Layout, dim: usize, ) -> Result<(Self::Storage, Shape)>
fn index_add_dispatch( init: &Self::Storage, init_l: &Layout, idx: &D::IntStorage, idx_l: &Layout, src: &Self::Storage, src_l: &Layout, dim: usize, ) -> Result<Self::Storage>
fn scatter_add_dispatch( init: &Self::Storage, init_l: &Layout, idx: &D::IntStorage, idx_l: &Layout, src: &Self::Storage, src_l: &Layout, dim: usize, ) -> Result<Self::Storage>
Source§impl<D: Device, T: IntFrom, const R: usize, const C: usize> IntoTensor<D, Int> for &[[T; C]; R]
impl<D: Device, T: IntFrom, const R: usize, const C: usize> IntoTensor<D, Int> for &[[T; C]; R]
Source§impl<D: Device, T: IntFrom, const D1: usize, const D2: usize, const D3: usize> IntoTensor<D, Int> for &[[[T; D3]; D2]; D1]
impl<D: Device, T: IntFrom, const D1: usize, const D2: usize, const D3: usize> IntoTensor<D, Int> for &[[[T; D3]; D2]; D1]
Source§impl<D: Device, T: IntFrom, const D1: usize, const D2: usize, const D3: usize, const D4: usize> IntoTensor<D, Int> for &[[[[T; D4]; D3]; D2]; D1]
impl<D: Device, T: IntFrom, const D1: usize, const D2: usize, const D3: usize, const D4: usize> IntoTensor<D, Int> for &[[[[T; D4]; D3]; D2]; D1]
Source§impl<D: Device> NumericDTypeKind<D> for Int
impl<D: Device> NumericDTypeKind<D> for Int
fn binary_dispatch( lhs: &Self::Storage, lhs_l: &Layout, rhs: &Self::Storage, rhs_l: &Layout, op: BinaryOp, ) -> Result<Self::Storage>
fn binary_inplace_dispatch( dst: &mut Self::Storage, dst_l: &Layout, src: &Self::Storage, src_l: &Layout, op: BinaryOp, ) -> Result<()>
fn binary_scalar_dispatch( lhs: &Self::Storage, lhs_l: &Layout, rhs: Self::Scalar, op: BinaryOp, ) -> Result<Self::Storage>
fn binary_scalar_inplace_dispatch( dst: &mut Self::Storage, dst_l: &Layout, rhs: Self::Scalar, op: BinaryOp, ) -> Result<()>
fn binary_scalar_lhs_dispatch( scalar: Self::Scalar, rhs: &Self::Storage, rhs_l: &Layout, op: BinaryOp, ) -> Result<Self::Storage>
fn cmp_dispatch( lhs: &Self::Storage, lhs_l: &Layout, rhs: &Self::Storage, rhs_l: &Layout, op: CmpOp, ) -> Result<D::BoolStorage>
fn cmp_scalar_dispatch( lhs: &Self::Storage, lhs_l: &Layout, rhs: Self::Scalar, op: CmpOp, ) -> Result<D::BoolStorage>
fn unary_dispatch( x: &Self::Storage, l: &Layout, op: UnaryOp<Self::Scalar>, ) -> Result<Self::Storage>
fn unary_inplace_dispatch( dst: &mut Self::Storage, dst_l: &Layout, op: UnaryOp<Self::Scalar>, ) -> Result<()>
Source§impl<D: Device> ReduceDTypeKind<D> for Int
impl<D: Device> ReduceDTypeKind<D> for Int
Source§impl<D: Device> ShapeDTypeKind<D> for Int
impl<D: Device> ShapeDTypeKind<D> for Int
fn contiguous_dispatch(s: &Self::Storage, l: &Layout) -> Result<Self::Storage>
fn cat_dispatch( srcs: &[(&Self::Storage, &Layout)], dim: usize, ) -> Result<(Self::Storage, Shape)>
fn view_dispatch( src: &Self::Storage, src_l: &Layout, dst_l: &Layout, view: ViewOp, ) -> Result<Option<Self::Storage>>
Auto Trait Implementations§
impl Freeze for Int
impl RefUnwindSafe for Int
impl Send for Int
impl Sync for Int
impl Unpin for Int
impl UnsafeUnpin for Int
impl UnwindSafe for Int
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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