pub struct FormatConversionKernels;
Expand description
Optimized format conversion kernels
Implementations§
Source§impl FormatConversionKernels
impl FormatConversionKernels
Sourcepub fn coo_to_csr_optimized(coo: &CooTensor) -> TorshResult<CsrTensor>
pub fn coo_to_csr_optimized(coo: &CooTensor) -> TorshResult<CsrTensor>
High-performance COO to CSR conversion with sorting optimization
Sourcepub fn coo_to_csc_optimized(coo: &CooTensor) -> TorshResult<CscTensor>
pub fn coo_to_csc_optimized(coo: &CooTensor) -> TorshResult<CscTensor>
High-performance COO to CSC conversion
Auto Trait Implementations§
impl Freeze for FormatConversionKernels
impl RefUnwindSafe for FormatConversionKernels
impl Send for FormatConversionKernels
impl Sync for FormatConversionKernels
impl Unpin for FormatConversionKernels
impl UnwindSafe for FormatConversionKernels
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
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