message: [XLA:Python] Delete buffers_from_pyvals, which is unused (except elsewhere in xla_client.py).
diff: @@ -76,13 +76,6 @@ class Backend(object):
  def buffer_from_pyval(self, pyval, device=None):
  """Allocates a fresh buffer and populates it with `pyval`."""
  - def buffers_from_pyvals(self, pyvals_and_devices):
  - """Allocates buffers and populates them with `pyvals`."""
  - return [
  - self.buffer_from_pyval(pyval, device)
  - for pyval, device in pyvals_and_devices
  - ]
  -
  @abc.abstractmethod
  def make_tuple(self, c_buffers, device):
  """Makes a tuple from a sequence of backend buffer objects."""
  @@ -404,22 +397,6 @@ class Buffer(object):
  backend = backend or get_local_backend()
  return backend.buffer_from_pyval(pyval, device)
  - @staticmethod
  - def from_pyvals(pyvals_and_devices, backend=None):
  - """Copies multiple Python values to freshly allocated on-device buffers.
  -
  - Arguments:
  - pyvals_and_devices: a list of `(pyval, device)` pairs, where `pyval` is a
  - Python value to copy (e.g., a NumPy array), and `device` is an integer
  - device ordinal.
  - backend: a Backend object, or `None` to use the default local backend.
  -
  - Returns:
  - A list of `Buffer` objects corresponding to `pyvals_and_devices`.
  - """
  - backend = backend or get_local_backend()
  - return backend.buffers_from_pyvals(pyvals_and_devices)
  -
  @staticmethod
  def make_tuple(buffers, device, backend=None):
  backend = backend or get_local_backend()
  @@ -674,7 +651,9 @@ def execute_with_python_values_replicated(executable, arguments, backend=None):
  flat_args = [(arg, device_ordinals[replica])
  for replica, replica_args in enumerate(arguments)
  for arg in replica_args]
  - flat_arg_buffers = Buffer.from_pyvals(flat_args, backend=backend)
  + flat_arg_buffers = [
  + backend.buffer_from_pyval(pyval, device) for pyval, device in flat_args
  + ]
  arg_buffers = []
  for replica_args in arguments:
  arg_buffers.append(flat_arg_buffers[:len(replica_args)])
  