class_docstr: ABC for BaseSGDTemplate plugins.
  
  See `BaseSGDTemplate` for complete description of the train/eval loop.
class_docstr_tok: ["ABC","for","BaseSGDTemplate","plugins",".","See","`","BaseSGDTemplate","`","for","complete","description","of","the","train\/eval","loop","."]
docstr: Called before `model.forward()` by the `BaseTemplate`.
docstr_tok: ["Called","before","`","model.forward","(",")","`","by","the","`","BaseTemplate","`","."]
code: def before_forward(self, strategy: Template, *args, **kwargs) -> Any:
      """Called before `model.forward()` by the `BaseTemplate`."""
      pass
  
imports: from abc import ABC
  from typing import Any, TypeVar, Generic
  from typing import TYPE_CHECKING
label_desc: Use image node_id 4 for calling the BaseSGDPlugin obj's underlying member method code with example usage: obj.before_forward(strategy) without return types