Struct nncombinator::cuda::kernel::activation::ActivationBackwardArgs
source · [−]pub struct ActivationBackwardArgs<T>where
T: DataTypeInfo,{
pub loss: CudaPtr<T>,
/* private fields */
}Expand description
Create an instance of an object representing the argument list during error back propagation of the activation function.
Fields
loss: CudaPtr<T>loss value
Implementations
sourceimpl<T> ActivationBackwardArgs<T>where
T: DataTypeInfo,
impl<T> ActivationBackwardArgs<T>where
T: DataTypeInfo,
Create an instance of an object representing the list of arguments during error back propagation of the activation function.
sourcepub fn new(
u: CudaPtr<T>,
loss: CudaPtr<T>,
units_len: usize,
batch_len: usize
) -> ActivationBackwardArgs<T>
pub fn new(
u: CudaPtr<T>,
loss: CudaPtr<T>,
units_len: usize,
batch_len: usize
) -> ActivationBackwardArgs<T>
Create a ActivationBackwardArgs instance
Arguments
u- Input values from upper layersloss- loss valueunits_len- count of inputs and outputs of linear layer weightsbatch_len- batch count
Trait Implementations
sourceimpl<T> KernelArgs for ActivationBackwardArgs<T>where
T: DataTypeInfo,
impl<T> KernelArgs for ActivationBackwardArgs<T>where
T: DataTypeInfo,
sourcefn as_vec(&mut self) -> Vec<&mut dyn AsMutKernelPtr>
fn as_vec(&mut self) -> Vec<&mut dyn AsMutKernelPtr>
Returns a Vec<&mut dyn AsMutKernelPtr> of the type implementing AsMutKernelPtr,
which is converted to a data type that can be passed to the cuda kernel in subsequent processing. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for ActivationBackwardArgs<T>where
T: RefUnwindSafe,
impl<T> !Send for ActivationBackwardArgs<T>
impl<T> !Sync for ActivationBackwardArgs<T>
impl<T> Unpin for ActivationBackwardArgs<T>
impl<T> UnwindSafe for ActivationBackwardArgs<T>where
T: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more