class_docstr: Abstract base class used to build new callbacks.
  
  Subclass this class and override any of the relevant hooks
class_docstr_tok: ["Abstract","base","class","used","to","build","new","callbacks",".","Subclass","this","class","and","override","any","of","the","relevant","hooks"]
docstr: Called when the predict begins.
docstr_tok: ["Called","when","the","predict","begins","."]
code: def on_predict_start(
      self, trainer: "pl.Trainer", pl_module: "pl.LightningModule"
  ) -> None:
      """Called when the predict begins."""
  
imports: from typing import Any, Dict, Type
  from torch import Tensor
  from torch.optim import Optimizer
  import lightning.pytorch
  from lightning.pytorch.utilities.types import STEP_OUTPUT
label_desc: Use image node_id 32 for calling the Callback obj's underlying member method code with example usage: obj.on_predict_start(trainer, pl_module) without return types