class_docstr: Generic loss function applied to structured outputs.
class_docstr_tok: ["Generic","loss","function","applied","to","structured","outputs","."]
code: def __call__(self, logits, targets, reduce=True):
      raise NotImplementedError
  
file_path: pytext/pytext/loss/structured_loss.py
imports: from enum import Enum
  from typing import Union
  import torch
  import torch.nn.functional
  from pytext.config import ConfigBase
  from pytext.config.component import create_loss
  from .loss import HingeLoss, Loss, NLLLoss
label_desc: Use image node_id 2 for calling the StructuredLoss obj's underlying member method code with example usage: obj.__call__(logits, targets, reduce) without return types