def available_layers(self):
        """Get the list of available layers for use with the :meth:`~flash.core.model.Task.as_embedder` method."""
        available_layers = []
        for name, _ in self.named_modules():
            if name not in ["train_metrics", "val_metrics", "test_metrics"]:
                available_layers.append(name)
        return ["output"] + available_layers
Get the list of available layers for use with the :meth:`~flash.core.model.Task.as_embedder` method.
src/flash/core/model.py