pub struct CpuLayoutTransformRequest<'request, 'input, 'output> { /* private fields */ }Expand description
Validated borrowed layout-transform request.
§Examples
use tenferro_cpu::provider::{CpuLayoutTransformIntent, CpuLayoutTransformRequest};
assert_eq!(request.intent(), CpuLayoutTransformIntent::CanonicalColumnMajor);Implementations§
Source§impl<'request, 'input, 'output> CpuLayoutTransformRequest<'request, 'input, 'output>
impl<'request, 'input, 'output> CpuLayoutTransformRequest<'request, 'input, 'output>
Sourcepub fn input(&self) -> &TensorRead<'input>
pub fn input(&self) -> &TensorRead<'input>
Return the borrowed input.
Sourcepub fn output(&mut self) -> &mut TensorWrite<'output>
pub fn output(&mut self) -> &mut TensorWrite<'output>
Reborrow the writable output.
Sourcepub fn intent(&self) -> CpuLayoutTransformIntent
pub fn intent(&self) -> CpuLayoutTransformIntent
Return the requested materialization intent.
Trait Implementations§
Auto Trait Implementations§
impl<'request, 'input, 'output> Freeze for CpuLayoutTransformRequest<'request, 'input, 'output>
impl<'request, 'input, 'output> !RefUnwindSafe for CpuLayoutTransformRequest<'request, 'input, 'output>
impl<'request, 'input, 'output> Send for CpuLayoutTransformRequest<'request, 'input, 'output>
impl<'request, 'input, 'output> Sync for CpuLayoutTransformRequest<'request, 'input, 'output>
impl<'request, 'input, 'output> Unpin for CpuLayoutTransformRequest<'request, 'input, 'output>
impl<'request, 'input, 'output> UnsafeUnpin for CpuLayoutTransformRequest<'request, 'input, 'output>
impl<'request, 'input, 'output> !UnwindSafe for CpuLayoutTransformRequest<'request, 'input, 'output>
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