Struct wyrm::IndexInputNode [] [src]

pub struct IndexInputNode {
    pub value: RefCell<SmallVec<[usize; 4]>>,
}

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

Fields

Methods

impl IndexInputNode
[src]

[src]

Create a new index input node.

Trait Implementations

impl Debug for IndexInputNode
[src]

[src]

Formats the value using the given formatter.

impl Node for IndexInputNode
[src]

Type of the node's value.

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

[src]

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

[src]

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

[src]

Return the value of the node.

[src]

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

[src]