class_docstr: Expand the `target` to match the `output` size before applying `crit`.
class_docstr_tok: ["Expand","the","`","target","`","to","match","the","`","output","`","size","before","applying","`","crit","`","."]
code: def __init__(self, crit: callable):
      self.crit = crit
  
imports: from __future__ import annotations
  from ..basics import *
  from .all import *
label_desc: Use image node_id 1 to create a new AdaptiveLoss object from inherited base classes: Module with example: obj = AdaptiveLoss(crit)