class_docstr: Hooks to be used in LightningModule.
class_docstr_tok: ["Hooks","to","be","used","in","LightningModule","."]
docstr: Called when the predict loop starts.
  
  The predict loop by default calls ``.eval()`` on the LightningModule before it starts. Override this hook
  to change the behavior.
code: def on_predict_model_eval(self) -> None:
      """Called when the predict loop starts.
  
      The predict loop by default calls ``.eval()`` on the LightningModule before it starts. Override this hook
      to change the behavior.
  
      """
      self.trainer.model.eval()
  
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 24 for calling the ModelHooks obj's underlying member method code with example usage: obj.on_predict_model_eval() without return types