src/transformers/models/oneformer/modeling_oneformer.py/OneFormerTransformerDecoderQueryTransformerDecoder/__init__
class OneFormerTransformerDecoderQueryTransformerDecoder:    def __init__(self, decoder_layer, num_layers, norm=None, return_intermediate=False):
        super().__init__()
        self.layers = _get_clones(decoder_layer, num_layers)
        self.num_layers = num_layers
        self.norm = norm
        self.return_intermediate = return_intermediate