class_docstr: Base class for edge weightings.
docstr: Initialize the module.
  
  :param kwargs:
      ignored keyword-based parameters.
docstr_tok: ["Initialize","the","module",".",":","param","kwargs",":","ignored","keyword-based","parameters","."]
code: def __init__(self, **kwargs):
      """
      Initialize the module.
  
      :param kwargs:
          ignored keyword-based parameters.
      """
      # stub init to enable arbitrary arguments in subclasses
      super().__init__()
  
imports: from abc import abstractmethod
  from typing import ClassVar, Optional, Union
  import torch
  from class_resolver import ClassResolver
  from torch import nn
  from ..utils import einsum
label_desc: Use image node_id 1 to create a new EdgeWeighting object from inherited base classes: nn with example: obj = EdgeWeighting()