class_docstr: Same as `loss_cls`, but flattens input and target.
docstr: Sets the reduction style (typically 'mean', 'sum', or 'none')
docstr_tok: ["Sets","the","reduction","style","(","typically","'mean","'",",","'sum","'",",","or","'none","'",")"]
code: def reduction(self, v: str):
      "Sets the reduction style (typically 'mean', 'sum', or 'none')"
      self.func.reduction = v
  
imports: from __future__ import annotations
  from .imports import *
  from .torch_imports import *
  from .torch_core import *
  from .layers import *
label_desc: Use image node_id 4 for calling the BaseLoss obj's underlying member method code with example usage: obj.reduction(v) without return types