pub struct Adagrad<'a, T> { /* private fields */ }
Expand description
Implementation Adagrad optimizer
Implementations§
Trait Implementations§
Source§impl<'a> Kernel for Adagrad<'a, f32>
impl<'a> Kernel for Adagrad<'a, f32>
Source§const FUNC_PTR: *const c_void = {alloc267: *const libc::c_void}
const FUNC_PTR: *const c_void = {alloc267: *const libc::c_void}
Pointer to cuda kernel function
Source§type Args = AdagradArgs<'a, f32>
type Args = AdagradArgs<'a, f32>
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> Kernel for Adagrad<'a, f64>
impl<'a> Kernel for Adagrad<'a, f64>
Source§const FUNC_PTR: *const c_void = {alloc269: *const libc::c_void}
const FUNC_PTR: *const c_void = {alloc269: *const libc::c_void}
Pointer to cuda kernel function
Source§type Args = AdagradArgs<'a, f64>
type Args = AdagradArgs<'a, f64>
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> Freeze for Adagrad<'a, T>
impl<'a, T> RefUnwindSafe for Adagrad<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Adagrad<'a, T>where
T: Send,
impl<'a, T> Sync for Adagrad<'a, T>where
T: Sync,
impl<'a, T> Unpin for Adagrad<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for Adagrad<'a, T>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