class_docstr: Hooks to be used in LightningModule.
class_docstr_tok: ["Hooks","to","be","used","in","LightningModule","."]
docstr: Deprecated.
  
  Use :meth:`~lightning.pytorch.core.hooks.ModelHooks.configure_model` instead.
code: def configure_sharded_model(self) -> None:
      """Deprecated.
  
      Use :meth:`~lightning.pytorch.core.hooks.ModelHooks.configure_model` instead.
  
      """
  
imports: from typing import Any, Dict, Optional
  import torch
  from torch import Tensor
  from torch.optim.optimizer import Optimizer
  from lightning.fabric.utilities.imports import _TORCH_GREATER_EQUAL_2_0
  from lightning.pytorch.utilities import move_data_to_device
  from lightning.pytorch.utilities.exceptions import MisconfigurationException
  from lightning.pytorch.utilities.types import EVAL_DATALOADERS, STEP_OUTPUT, TRAIN_DATALOADERS
label_desc: Use image node_id 37 for calling the ModelHooks obj's underlying member method code with example usage: obj.configure_sharded_model() without return types