pub struct CastSubByteArgs<'a, TIn: DeviceRepr + Copy + 'static, TOut: DeviceRepr + Copy + 'static> {
pub input: TensorRef<'a, TIn, 1>,
pub output: TensorMut<'a, TOut, 1>,
}Expand description
Args bundle for a CastSubBytePlan launch.
input and output are rank-1 contiguous views. For S4 / U4
endpoints the data buffer is the packed byte storage (length =
numel / 2 bytes), not the element view; the caller types it as
TensorRef<'a, S4, 1> and the plan handles the numel / 2 byte
math internally.
Fields§
§input: TensorRef<'a, TIn, 1>Input — TIn element type.
output: TensorMut<'a, TOut, 1>Output — TOut element type.
Auto Trait Implementations§
impl<'a, TIn, TOut> !UnwindSafe for CastSubByteArgs<'a, TIn, TOut>
impl<'a, TIn, TOut> Freeze for CastSubByteArgs<'a, TIn, TOut>
impl<'a, TIn, TOut> RefUnwindSafe for CastSubByteArgs<'a, TIn, TOut>where
TIn: RefUnwindSafe,
TOut: RefUnwindSafe,
impl<'a, TIn, TOut> Send for CastSubByteArgs<'a, TIn, TOut>
impl<'a, TIn, TOut> Sync for CastSubByteArgs<'a, TIn, TOut>
impl<'a, TIn, TOut> Unpin for CastSubByteArgs<'a, TIn, TOut>
impl<'a, TIn, TOut> UnsafeUnpin for CastSubByteArgs<'a, TIn, TOut>
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