class_docstr: Represents a skip connection layout across partitions.
docstr: Generates skip routes for the given destination partition number.
  The skip routes are sorted by source partition number in ascending
  order.
  
  Yields:
      Each tuple of (source partition number, namespace, name).
code: def copy_policy(
      self, next_j: int
  ) -> Iterable[Tuple[int, Namespace, str]]:
      """Generates skip routes for the given destination partition number.
      The skip routes are sorted by source partition number in ascending
      order.
  
      Yields:
          Each tuple of (source partition number, namespace, name).
  
      """
      for prev_j, ns, name in self.by_partition[next_j]:
          if prev_j == next_j:
              # This skip tensor will be popped at the same partition where
              # it is stashed. In this case, copy is not required.
              continue
  
          yield (prev_j, ns, name)
  
file_path: fairscale/fairscale/nn/pipe/skip/layout.py
imports: from typing import Dict, Iterable, List, Tuple
  from torch import nn
  from .namespace import Namespace
label_desc: Use image node_id 3 for calling the SkipLayout obj's underlying member method code with example usage: obj.copy_policy(next_j) without return types