def as_embedder(self, layer: str):
        """Convert this task to an embedder. Note that the parameters are not copied so that any optimization of the
        embedder will also apply to the converted ``Task``.

        Args:
            layer: The layer to embed to. This should be one of the :meth:`~flash.core.model.Task.available_layers`.

        """
        from flash.core.utilities.embedder import Embedder  # Avoid circular import

        return Embedder(self, layer)
Convert this task to an embedder. Note that the parameters are not copied so that any optimization of the
        embedder will also apply to the converted ``Task``.

        Args:
            layer: The layer to embed to. This should be one of the :meth:`~flash.core.model.Task.available_layers`.

        
src/flash/core/model.py