code: def __init__(self, cuda=False):
      super(DualTaskLoss, self).__init__()
      self._cuda = cuda
  
file_path: pywick/pywick/models/segmentation/testnets/gscnn/my_functionals/DualTaskLoss.py
imports: import torch
  import torch.nn
  import torch.nn.functional
  import numpy
  from .custom_functional import compute_grad_mag
label_desc: Use image node_id 1 to create a new DualTaskLoss object from inherited base classes: nn with example: obj = DualTaskLoss(cuda)