class_docstr: An interface for inverse-relation ID mapping.
class_docstr_tok: ["An","interface","for","inverse-relation","ID","mapping","."]
docstr: Invert relations in a batch (in-place).
docstr_tok: ["Invert","relations","in","a","batch","(","in-place",")","."]
code: def invert_(
      self, batch: torch.LongTensor, index: int = 1
  ) -> torch.LongTensor:
      """Invert relations in a batch (in-place)."""
  
file_path: pykeen/src/pykeen/inverse.py
imports: from abc import ABC, abstractmethod
  from typing import TypeVar
  import torch
  from class_resolver import Resolver
label_desc: Use image node_id 3 for calling the RelationInverter obj's underlying member method code with example usage: obj.invert_(batch, index) without return types