SequenceIndicesLayer
SequenceIndicesLayer[] represents a net layer that produces a list of indices for an input sequence.
Examples
Create a sequence indices layer:
layer = SequenceIndicesLayer[];
layer[{a, b, c}]Use in a neural network:
NetChain[{SequenceIndicesLayer[], LinearLayer[10]}]Please visit the official Wolfram Language Reference for more details.