Struct wyrm::IndexInputNode[][src]

pub struct IndexInputNode { /* fields omitted */ }

An input node for integer indices into ParameterNodes, used for implementing indexable embedding layers.

Methods

impl IndexInputNode
[src]

Create a new index input node.

Trait Implementations

impl Debug for IndexInputNode
[src]

Formats the value using the given formatter. Read more

impl Node for IndexInputNode
[src]

Type of the node's value.

Type of the input gradient the node receives during backpropagation. Read more

Perform the forward step. Should recursively call the forward methods of its ancestors. Read more

Perform the backward step. Should recursively call the backward methods of its ancestors. Read more

Return the value of the node.

If the node needs to be used in the backward step.

Reset the caches of this node and its parents.

Auto Trait Implementations