pub struct CastArgs<'a, TIn: Element, TOut: Element> {
pub input: TensorRef<'a, TIn, 1>,
pub output: TensorMut<'a, TOut, 1>,
}Expand description
Args bundle for a cast launch. Both input and output are
rank-1 contiguous views over numel elements.
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 CastArgs<'a, TIn, TOut>
impl<'a, TIn, TOut> Freeze for CastArgs<'a, TIn, TOut>
impl<'a, TIn, TOut> RefUnwindSafe for CastArgs<'a, TIn, TOut>where
TIn: RefUnwindSafe,
TOut: RefUnwindSafe,
impl<'a, TIn, TOut> Send for CastArgs<'a, TIn, TOut>
impl<'a, TIn, TOut> Sync for CastArgs<'a, TIn, TOut>
impl<'a, TIn, TOut> Unpin for CastArgs<'a, TIn, TOut>
impl<'a, TIn, TOut> UnsafeUnpin for CastArgs<'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