class_docstr: Utility class for distributed infer of PaddlePaddle.
class_docstr_tok: ["Utility","class","for","distributed","infer","of","PaddlePaddle","."]
code: def _get_sparse_table_map(self):
      import paddle.distributed.fleet as fleet
  
      if self.sparse_table_maps is None:
          self.sparse_table_maps = {}
          send_ctx = fleet.fleet._runtime_handle._communicator.send_ctx_
          for gradname, ctx in send_ctx.items():
              if ctx.is_sparse:
                  param = gradname.strip("@GRAD")
                  self.sparse_table_maps[param] = ctx.table_id()
              else:
                  continue
      return self.sparse_table_maps
  
file_path: PGL/apps/Graph4Rec/env_run/src/utils/ps_util.py
imports: import numpy
  import os
  import paddle
  import warnings
label_desc: Use image node_id 3 for calling the DistributedInfer obj's underlying member method code with example usage: obj._get_sparse_table_map() and returns: self