class_docstr: Mesh implementation for TPU using SIMD and MPI operations.
class_docstr_tok: ["Mesh","implementation","for","TPU","using","SIMD","and","MPI","operations","."]
docstr: Create group assignment for XLA cross replica ops (physical pnums).
code: def _create_group_assignment(self, mesh_axes):
      """Create group assignment for XLA cross replica ops (physical pnums)."""
  
      partitioning = {}
      for logical_pnum in xrange(self.size):
          group = mtf.pnum_to_group(self.shape, mesh_axes, logical_pnum)
          if group not in partitioning:
              partitioning[group] = []
          partitioning[group].append(self.l2p(logical_pnum))
      group_assignment = []
      for group, physical_pnums in partitioning.items():
          group_assignment.append(physical_pnums)
      return group_assignment
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import math
  import os
  import gin
  from mesh_tensorflow import ops_with_redefined_builtins
  from mesh_tensorflow import tpu_variables
  from mesh_tensorflow import utils
  from six.moves import xrange
  import tensorflow.compat.v1
  from tensorflow.python.tpu.ops import tpu_ops
label_desc: Use image node_id 6 for calling the SimdMeshImpl obj's underlying member method code with example usage: obj._create_group_assignment(mesh_axes) and returns: group_assignment