class_docstr: Hooks to be used in LightningModule.
class_docstr_tok: ["Hooks","to","be","used","in","LightningModule","."]
docstr: Called in the validation loop after the batch.
  
  Args:
      outputs: The outputs of validation_step(x)
      batch: The batched data as it is returned by the validation DataLoader.
      batch_idx: the index of the batch
      dataloader_idx: the index of the dataloader
code: def on_validation_batch_end(
      self,
      outputs: STEP_OUTPUT,
      batch: Any,
      batch_idx: int,
      dataloader_idx: int = 0,
  ) -> None:
      """Called in the validation loop after the batch.
  
      Args:
          outputs: The outputs of validation_step(x)
          batch: The batched data as it is returned by the validation DataLoader.
          batch_idx: the index of the batch
          dataloader_idx: the index of the dataloader
  
      """
  
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 14 for calling the ModelHooks obj's underlying member method code with example usage: obj.on_validation_batch_end(outputs, batch, batch_idx, dataloader_idx) without return types