code: def forward(self, inpt, tgt):
      num = torch.abs(tgt - inpt)
      denom = torch.abs(tgt) + torch.abs(inpt)
      if self.block_denom_grad:
          denom = denom.detach()
      return torch.mean(_divide_no_nan(num, denom))
  
file_path: darts/darts/utils/losses.py
imports: import numpy
  import torch
  import torch.nn
label_desc: Use image node_id 2 for calling the SmapeLoss obj's underlying member method code with example usage: obj.forward(inpt, tgt) and returns: torch