pub struct LinearBatchCrossEntropyMulticlass<'a, T, const N: usize>where
T: DataTypeInfo + UnitValue<T>,{ /* private fields */ }
Implementations§
Source§impl<'a, T, const N: usize> LinearBatchCrossEntropyMulticlass<'a, T, N>where
T: DataTypeInfo + UnitValue<T>,
impl<'a, T, const N: usize> LinearBatchCrossEntropyMulticlass<'a, T, N>where
T: DataTypeInfo + UnitValue<T>,
Sourcepub fn new() -> LinearBatchCrossEntropyMulticlass<'a, T, N>
pub fn new() -> LinearBatchCrossEntropyMulticlass<'a, T, N>
Create a LinearBatchCrossEntropyMulticlass instance
Trait Implementations§
Source§impl<'a, const N: usize> Kernel for LinearBatchCrossEntropyMulticlass<'a, f32, N>
impl<'a, const N: usize> Kernel for LinearBatchCrossEntropyMulticlass<'a, f32, N>
Source§const FUNC_PTR: *const c_void = {alloc221: *const libc::c_void}
const FUNC_PTR: *const c_void = {alloc221: *const libc::c_void}
Pointer to cuda kernel function
Source§type Args = LinearBatchCrossEntropyMulticlassArgs<'a, f32, N>
type Args = LinearBatchCrossEntropyMulticlassArgs<'a, f32, N>
Object to be converted into a list of arguments to be passed to the cuda kernel function
Source§fn launch(
&mut self,
grid_dim: dim3,
block_dim: dim3,
args: &mut Self::Args,
shared_mem: usize,
) -> Result<(), CudaRuntimeError>
fn launch( &mut self, grid_dim: dim3, block_dim: dim3, args: &mut Self::Args, shared_mem: usize, ) -> Result<(), CudaRuntimeError>
cuda kernel startup function Read more
Source§fn device_synchronize(&self) -> Result<(), CudaRuntimeError>
fn device_synchronize(&self) -> Result<(), CudaRuntimeError>
Function that waits for the completion of the execution of the process passed to the Cuda kernel Read more
Source§impl<'a, const N: usize> Kernel for LinearBatchCrossEntropyMulticlass<'a, f64, N>
impl<'a, const N: usize> Kernel for LinearBatchCrossEntropyMulticlass<'a, f64, N>
Source§const FUNC_PTR: *const c_void = {alloc223: *const libc::c_void}
const FUNC_PTR: *const c_void = {alloc223: *const libc::c_void}
Pointer to cuda kernel function
Source§type Args = LinearBatchCrossEntropyMulticlassArgs<'a, f64, N>
type Args = LinearBatchCrossEntropyMulticlassArgs<'a, f64, N>
Object to be converted into a list of arguments to be passed to the cuda kernel function
Source§fn launch(
&mut self,
grid_dim: dim3,
block_dim: dim3,
args: &mut Self::Args,
shared_mem: usize,
) -> Result<(), CudaRuntimeError>
fn launch( &mut self, grid_dim: dim3, block_dim: dim3, args: &mut Self::Args, shared_mem: usize, ) -> Result<(), CudaRuntimeError>
cuda kernel startup function Read more
Source§fn device_synchronize(&self) -> Result<(), CudaRuntimeError>
fn device_synchronize(&self) -> Result<(), CudaRuntimeError>
Function that waits for the completion of the execution of the process passed to the Cuda kernel Read more
Auto Trait Implementations§
impl<'a, T, const N: usize> Freeze for LinearBatchCrossEntropyMulticlass<'a, T, N>
impl<'a, T, const N: usize> RefUnwindSafe for LinearBatchCrossEntropyMulticlass<'a, T, N>where
T: RefUnwindSafe,
impl<'a, T, const N: usize> Send for LinearBatchCrossEntropyMulticlass<'a, T, N>
impl<'a, T, const N: usize> Sync for LinearBatchCrossEntropyMulticlass<'a, T, N>
impl<'a, T, const N: usize> Unpin for LinearBatchCrossEntropyMulticlass<'a, T, N>where
T: Unpin,
impl<'a, T, const N: usize> UnwindSafe for LinearBatchCrossEntropyMulticlass<'a, T, N>where
T: UnwindSafe,
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