Module gad::store[][src]

Gradient storage for the graph module.

Structs

EmptyGradientMap

A gradient store that contains no value. This is used as a placeholder when instantiating networks Net on algebras without backward propagation such as Eval and Check.

GenericGradientMap1

Gradient store used by Graph1. Indices of type GradientId<T> are mapped to values of type T.

GenericGradientMapN

Gradient store used by GraphN. Indices of type GradientId<T> are mapped to values of type Value<T>.

GradientId

A node Id associated with an underlying gradient type T. Such an association must assign a unique type to inner Id.

Id

Index of a computation node tracked in a graph. Note: Offset is non-zero to optimize std::mem::size_of<Option<Id>>()

Traits

GradientReader

Trait for reading gradient values of type T given a handle of type Id. Value may be converted if needed.

GradientStore

Trait for accessing gradient values of type T given a handle of type Id.