(axis_name, devices)
Records axis_name and devices for this context.
Records axis_name and devices for this context.
Records axis_name and devices for this context .
def pmap_config(axis_name, devices):
  """Records axis_name and devices for this context."""
  old_axis_name = _pmap_config.axis_name()
  old_devices = _pmap_config.devices()
  _pmap_config.set_axis_name(axis_name)
  _pmap_config.set_devices(devices)
  try:
    yield
  finally:
    _pmap_config.set_axis_name(old_axis_name)
    _pmap_config.set_devices(old_devices)
def pmap_config ( axis_name , devices ) : old_axis_name = _pmap_config . axis_name ( ) old_devices = _pmap_config . devices ( ) _pmap_config . set_axis_name ( axis_name ) _pmap_config . set_devices ( devices ) try : yield finally : _pmap_config . set_axis_name ( old_axis_name ) _pmap_config . set_devices ( old_devices )