CRepeatSequenceLayer Class
June 14, 2020 ยท View on GitHub
The class implements a layer that repeats the input sequence several times.
Settings
Repetitions count
void SetRepeatCount(int count);
Sets the number of repetitions. For example: you set it to 2, a {0,3,7} sequence will be transformed into {0,3,7,0,3,7}.
Trainable parameters
The layer has no trainable parameters.
Inputs
The single input accepts a blob with a sequence of objects, of the dimensions:
BatchLengthis the sequence lengthBatchWidth * ListSizeis the number of sequences in the setHeight * Width * Depth * Channelsis the size of each object in the sequence
Outputs
The single output returns a blob with the results, of the dimensions:
BatchLengthisGetRepeatCount()times larger than the inputBatchLength.- the other dimensions are equal to the corresponding input dimensions.