class_docstr: Base class for defining loss functions. Sub-classes must implement compute_loss function.
  
  Args:
      opts: command line arguments
class_docstr_tok: ["Base","class","for","defining","loss","functions",".","Sub-classes","must","implement","compute_loss","function",".","Args",":","opts",":","command","line","arguments"]
code: def __init__(self, opts: argparse.Namespace, *args, **kwargs) -> None:
      super(BaseCriteria, self).__init__()
      self.opts = opts
      # small value for numerical stability purposes that sub-classes may want to use.
      self.eps = 1e-7
  
file_path: ml-cvnets/loss_fn/base_criteria.py
imports: import abc
  import argparse
  from typing import Any
  from torch import nn
  from utils import logger
label_desc: Use image node_id 1 to create a new BaseCriteria object from inherited base classes: nn, abc with example: obj = BaseCriteria(opts)