pub struct CachedTensor<U, T>where
    U: Debug + Default,
    T: AsRawSlice<U>,
{ /* private fields */ }
Expand description

Object that collectively manages cuda memory paired with a value of a specified type

Implementations§

Creation of CachedTensor instance

Arguments
  • value - Wrapping value
  • memory_pool - Memory pool for allocating cuda memory paired with value
Errors

This function may return the following errors

Returns the ScopedMut object associated with the value it has

Trait Implementations§

The resulting type after dereferencing.
Dereferences the value.
Forward propagation calculation Read more
Error back propagation calculation Read more
Calculate the gradient of the weights Read more
Forward propagation calculation in batch Read more
Error back propagation in batch Read more
Calculate the gradient of the weights in batch Read more
Forward propagation calculation Read more
Error back propagation calculation Read more
Calculate the gradient of the weights Read more
Forward propagation calculation in batch Read more
Error back propagation in batch Read more
Calculate the gradient of the weights in batch Read more
The returned type after indexing.
Performs the indexing (container[index]) operation. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.