Struct web_rwkv::tensor::TensorView
source · pub struct TensorView<'a, T: Scalar> {
pub tensor: &'a TensorGpu<T, ReadWrite>,
/* private fields */
}Fields§
§tensor: &'a TensorGpu<T, ReadWrite>Implementations§
source§impl<T: Scalar> TensorView<'_, T>
impl<T: Scalar> TensorView<'_, T>
pub fn data(&self) -> &TensorBuffer
pub fn meta_binding(&self) -> BindingResource<'_>
pub fn binding(&self) -> BindingResource<'_>
Trait Implementations§
source§impl<'a, T: Clone + Scalar> Clone for TensorView<'a, T>
impl<'a, T: Clone + Scalar> Clone for TensorView<'a, T>
source§fn clone(&self) -> TensorView<'a, T>
fn clone(&self) -> TensorView<'a, T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<T: Scalar> TensorShape for TensorView<'_, T>
impl<T: Scalar> TensorShape for TensorView<'_, T>
Auto Trait Implementations§
impl<'a, T> !RefUnwindSafe for TensorView<'a, T>
impl<'a, T> Send for TensorView<'a, T>where
T: Sync,
impl<'a, T> Sync for TensorView<'a, T>where
T: Sync,
impl<'a, T> Unpin for TensorView<'a, T>
impl<'a, T> !UnwindSafe for TensorView<'a, T>
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