pub struct CudaTensor3dPtr<T, const N1: usize, const N2: usize, const N3: usize>{ /* private fields */ }Expand description
Cuda memory object representing a 3D array with dimension number as type parameter
Implementations§
Source§impl<T, const N1: usize, const N2: usize, const N3: usize> CudaTensor3dPtr<T, N1, N2, N3>
impl<T, const N1: usize, const N2: usize, const N3: usize> CudaTensor3dPtr<T, N1, N2, N3>
Sourcepub fn new(
memory_pool: &Arc<Mutex<MemoryPool>>,
) -> Result<CudaTensor3dPtr<T, N1, N2, N3>, CudaError>
pub fn new( memory_pool: &Arc<Mutex<MemoryPool>>, ) -> Result<CudaTensor3dPtr<T, N1, N2, N3>, CudaError>
Sourcepub fn with_initializer<I: FnMut() -> T>(
memory_pool: &Arc<Mutex<MemoryPool>>,
initializer: I,
) -> Result<CudaTensor3dPtr<T, N1, N2, N3>, CudaError>
pub fn with_initializer<I: FnMut() -> T>( memory_pool: &Arc<Mutex<MemoryPool>>, initializer: I, ) -> Result<CudaTensor3dPtr<T, N1, N2, N3>, CudaError>
Trait Implementations§
Source§impl<T, const N1: usize, const N2: usize, const N3: usize> AsCudaMutPtr for CudaTensor3dPtr<T, N1, N2, N3>
impl<T, const N1: usize, const N2: usize, const N3: usize> AsCudaMutPtr for CudaTensor3dPtr<T, N1, N2, N3>
Source§type Pointer = CudaMemoryPoolPtr<T>
type Pointer = CudaMemoryPoolPtr<T>
Returned Cuda smart pointer type
fn as_cuda_mut_ptr<'a>(&'a mut self) -> CudaMutPtr<'a, Self::Pointer>
Source§impl<'a, T, const N1: usize, const N2: usize, const N3: usize> AsCudaPtrRef for &'a CudaTensor3dPtr<T, N1, N2, N3>
impl<'a, T, const N1: usize, const N2: usize, const N3: usize> AsCudaPtrRef for &'a CudaTensor3dPtr<T, N1, N2, N3>
Source§type Pointer = CudaMemoryPoolPtr<T>
type Pointer = CudaMemoryPoolPtr<T>
Returned Cuda smart pointer type
fn as_cuda_ptr_ref(&self) -> &Self::Pointer
Source§impl<T, const N1: usize, const N2: usize, const N3: usize> AsCudaPtrRef for CudaTensor3dPtr<T, N1, N2, N3>
impl<T, const N1: usize, const N2: usize, const N3: usize> AsCudaPtrRef for CudaTensor3dPtr<T, N1, N2, N3>
Source§type Pointer = CudaMemoryPoolPtr<T>
type Pointer = CudaMemoryPoolPtr<T>
Returned Cuda smart pointer type
fn as_cuda_ptr_ref(&self) -> &Self::Pointer
Source§impl<T, const N1: usize, const N2: usize, const N3: usize> BatchDataType for CudaTensor3dPtr<T, N1, N2, N3>
impl<T, const N1: usize, const N2: usize, const N3: usize> BatchDataType for CudaTensor3dPtr<T, N1, N2, N3>
type Type = CudaVec<T, CudaTensor3dPtr<T, N1, N2, N3>>
Source§impl<T, const N1: usize, const N2: usize, const N3: usize> Debug for CudaTensor3dPtr<T, N1, N2, N3>
impl<T, const N1: usize, const N2: usize, const N3: usize> Debug for CudaTensor3dPtr<T, N1, N2, N3>
Source§impl<'a, T, const N1: usize, const N2: usize, const N3: usize> From<&'a CudaTensor3dPtr<T, N1, N2, N3>> for &'a CudaMemoryPoolPtr<T>
impl<'a, T, const N1: usize, const N2: usize, const N3: usize> From<&'a CudaTensor3dPtr<T, N1, N2, N3>> for &'a CudaMemoryPoolPtr<T>
Source§fn from(value: &'a CudaTensor3dPtr<T, N1, N2, N3>) -> Self
fn from(value: &'a CudaTensor3dPtr<T, N1, N2, N3>) -> Self
Converts to this type from the input type.
Source§impl<'a, T, const N1: usize, const N2: usize, const N3: usize> From<&'a CudaTensor3dPtr<T, N1, N2, N3>> for CudaTensor3dPtrView<'a, T, N1, N2, N3>
impl<'a, T, const N1: usize, const N2: usize, const N3: usize> From<&'a CudaTensor3dPtr<T, N1, N2, N3>> for CudaTensor3dPtrView<'a, T, N1, N2, N3>
Source§fn from(value: &'a CudaTensor3dPtr<T, N1, N2, N3>) -> Self
fn from(value: &'a CudaTensor3dPtr<T, N1, N2, N3>) -> Self
Converts to this type from the input type.
Source§impl<'a, T, const N1: usize, const N2: usize, const N3: usize> From<&'a mut CudaTensor3dPtr<T, N1, N2, N3>> for &'a mut CudaMemoryPoolPtr<T>
impl<'a, T, const N1: usize, const N2: usize, const N3: usize> From<&'a mut CudaTensor3dPtr<T, N1, N2, N3>> for &'a mut CudaMemoryPoolPtr<T>
Source§fn from(value: &'a mut CudaTensor3dPtr<T, N1, N2, N3>) -> Self
fn from(value: &'a mut CudaTensor3dPtr<T, N1, N2, N3>) -> Self
Converts to this type from the input type.
Source§impl<T, const N1: usize, const N2: usize, const N3: usize> MemorySize for CudaTensor3dPtr<T, N1, N2, N3>
impl<T, const N1: usize, const N2: usize, const N3: usize> MemorySize for CudaTensor3dPtr<T, N1, N2, N3>
Source§impl<T, const N1: usize, const N2: usize, const N3: usize> PointerElement for CudaTensor3dPtr<T, N1, N2, N3>
impl<T, const N1: usize, const N2: usize, const N3: usize> PointerElement for CudaTensor3dPtr<T, N1, N2, N3>
Source§impl<'a, T, const N1: usize, const N2: usize, const N3: usize> ToCuda<T> for &'a CudaTensor3dPtr<T, N1, N2, N3>where
T: UnitValue<T>,
impl<'a, T, const N1: usize, const N2: usize, const N3: usize> ToCuda<T> for &'a CudaTensor3dPtr<T, N1, N2, N3>where
T: UnitValue<T>,
Source§impl<T, const N1: usize, const N2: usize, const N3: usize> ToCuda<T> for CudaTensor3dPtr<T, N1, N2, N3>where
T: UnitValue<T>,
impl<T, const N1: usize, const N2: usize, const N3: usize> ToCuda<T> for CudaTensor3dPtr<T, N1, N2, N3>where
T: UnitValue<T>,
Source§impl<T, const N1: usize, const N2: usize, const N3: usize> TryClone for CudaTensor3dPtr<T, N1, N2, N3>
impl<T, const N1: usize, const N2: usize, const N3: usize> TryClone for CudaTensor3dPtr<T, N1, N2, N3>
Source§impl<'a, T, const N1: usize, const N2: usize, const N3: usize> TryFrom<&'a CudaTensor3dPtrView<'a, T, N1, N2, N3>> for CudaTensor3dPtr<T, N1, N2, N3>
impl<'a, T, const N1: usize, const N2: usize, const N3: usize> TryFrom<&'a CudaTensor3dPtrView<'a, T, N1, N2, N3>> for CudaTensor3dPtr<T, N1, N2, N3>
Auto Trait Implementations§
impl<T, const N1: usize, const N2: usize, const N3: usize> Freeze for CudaTensor3dPtr<T, N1, N2, N3>
impl<T, const N1: usize, const N2: usize, const N3: usize> RefUnwindSafe for CudaTensor3dPtr<T, N1, N2, N3>where
T: RefUnwindSafe,
impl<T, const N1: usize, const N2: usize, const N3: usize> !Send for CudaTensor3dPtr<T, N1, N2, N3>
impl<T, const N1: usize, const N2: usize, const N3: usize> !Sync for CudaTensor3dPtr<T, N1, N2, N3>
impl<T, const N1: usize, const N2: usize, const N3: usize> Unpin for CudaTensor3dPtr<T, N1, N2, N3>
impl<T, const N1: usize, const N2: usize, const N3: usize> UnwindSafe for CudaTensor3dPtr<T, N1, N2, N3>where
T: RefUnwindSafe,
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