def _get_model(self, strategy: "BaseSGDTemplate") -> PackNetModule:
        """Get the model from the strategy."""
        model = strategy.model
        if not isinstance(strategy.model, PackNetModule):
            raise ValueError(
                f"`PackNetPlugin` can only be used with a `PackNet` model, "
                f"got {type(strategy.model)}. Try wrapping your model with "
                "`PackNet` before using this plugin."
            )
        return model
Get the model from the strategy.
avalanche/models/packnet.py