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]}]Something isn't working? Report an issue.
Please visit the official Wolfram Language Reference for more details.