def is_conditioned(self) -> bool:
        """Check whether all decoder layers are already conditioned."""
        return all(layer.is_conditioned()
                   for layer in self._get_decoder_layers())
Check whether all decoder layers are already conditioned.
mmpretrain/models/multimodal/flamingo/adapter.py