WLJS LogoWLJS Notebook

SequenceLastLayer

SequenceLastLayer[] represents a net that takes a sequence of inputs and returns the last element of the sequence.

Examples

net = NetChain[{LongShortTermMemoryLayer[10], SequenceLastLayer[]}];
net[RandomReal[1, {5, 3}]]

Please visit the official Wolfram Language Reference for more details.

On this page