def add_sequence_repeat(self, name, nrep, input_name, output_name):
        """
        Add a sequence repeat layer to the model.
        Refer to the ``SequenceRepeatLayerParams`` message in the specification
        (NeuralNetwork.proto) for more details.

        Parameters
        ----------
        name: str
            The name of this layer.
        nrep: int
            Number of repetitions of the input blob along the sequence axis.
        input_name: str
            The input blob name of this layer.
        output_name: str
            The output blob name of this layer.

        See Also
        --------
        add_upsample, add_elementwise
        """
        spec_layer = self._add_generic_layer(name, [input_name], [output_name])
        spec_layer_params = spec_layer.sequenceRepeat
        spec_layer_params.nRepetitions = nrep
        return spec_layer

        Add a sequence repeat layer to the model.
        Refer to the ``SequenceRepeatLayerParams`` message in the specification
        (NeuralNetwork.proto) for more details.

        Parameters
        ----------
        name: str
            The name of this layer.
        nrep: int
            Number of repetitions of the input blob along the sequence axis.
        input_name: str
            The input blob name of this layer.
        output_name: str
            The output blob name of this layer.

        See Also
        --------
        add_upsample, add_elementwise
        
coremltools/models/neural_network/builder.py