class_docstr: Container for replicated `Variables` that are treated as a single variable.
  
  This class maintains a list of replicated variables that are stored on
  separate logic TPU devices. TF2XLA bridge accesses these variables as
  if they were a single variable.
class_docstr_tok: ["Container","for","replicated","`","Variables","`","that","are","treated","as","a","single","variable",".","This","class","maintains","a","list","of","replicated","variables","that","are","stored","on","separate","logic","TPU","devices",".","TF2XLA","bridge","accesses","these","variables","as","if","they","were","a","single","variable","."]
docstr: Converts the value to tensor and updates the variable list.
code: def _update(self, update_fn, value, **kwargs):
      """Converts the value to tensor and updates the variable list."""
      input_tensor = ops.convert_to_tensor(
          value, name="value_in_tensor", dtype=self.dtype
      )
  
      return control_flow_ops.group(
          *tuple(
              _on_device_update(update_fn, v, input_tensor, **kwargs)
              for v in self.variables
          )
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from collections import abc
  import contextlib
  from tensorflow.python.compiler.xla.experimental import xla_sharding
  from tensorflow.python.distribute import tpu_util
  from tensorflow.python.eager import context
  from tensorflow.python.framework import config
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_conversion_registry
  from tensorflow.python.ops import control_flow_ops
  from tensorflow.python.ops import gen_resource_variable_ops
  from tensorflow.python.ops import gen_tpu_partition_ops
  from tensorflow.python.ops import variable_scope
  from tensorflow.python.ops import variables
  from tensorflow.python.saved_model import save_context
  from tensorflow.python.trackable import base
label_desc: Use image node_id 27 for calling the TPUReplicatedVariable obj's underlying member method code with example usage: obj._update(update_fn, value) and returns: control_flow_ops