class_docstr: An autograd function that performs push_pull on a tensor.
class_docstr_tok: ["An","autograd","function","that","performs","push_pull","on","a","tensor","."]
code: def forward(ctx, tensor, average, name, version, priority):
      ctx.average = average
      ctx.name = name
      ctx.version = version
      ctx.priority = priority
      handle = push_pull_async(tensor, average, name, version, priority)
      return synchronize(handle)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from distutils.version import LooseVersion
  import torch
  from byteps.torch import c_lib
  from byteps.common import BytePSBasics
  from byteps.torch.compression import Compression
label_desc: Use image node_id 1 for calling the BytePSPushPull obj's underlying member method code with example usage: obj.forward(ctx, tensor, average, name, version, priority) and returns: synchronize