pub struct DeviceTensorMut<'a, T: DeviceElement> { /* private fields */ }Expand description
A lifetime-bound, exclusive CUDA tensor descriptor.
Implementations§
Source§impl<T: DeviceElement> DeviceTensorMut<'_, T>
impl<T: DeviceElement> DeviceTensorMut<'_, T>
pub fn as_const(&self) -> DeviceTensor<'_, T>
pub fn device(&self) -> i32
pub fn shape(&self) -> &[i64]
pub fn strides(&self) -> Option<&[i64]>
pub fn byte_len(&self) -> usize
pub fn byte_offset(&self) -> usize
pub fn binding_id(&self) -> ExecutionBindingId
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn rows(&self) -> Result<usize>
pub fn columns(&self) -> Result<usize>
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> !Send for DeviceTensorMut<'a, T>
impl<'a, T> !Sync for DeviceTensorMut<'a, T>
impl<'a, T> !UnwindSafe for DeviceTensorMut<'a, T>
impl<'a, T> Freeze for DeviceTensorMut<'a, T>
impl<'a, T> RefUnwindSafe for DeviceTensorMut<'a, T>
impl<'a, T> Unpin for DeviceTensorMut<'a, T>
impl<'a, T> UnsafeUnpin for DeviceTensorMut<'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