class_docstr: Implementation of `RemoteValue`.
class_docstr_tok: ["Implementation","of","`","RemoteValue","`","."]
docstr: Initializes a `RemoteValueImpl`.
  
  Args:
    closure: The closure from which the `RemoteValue` is created.
    type_spec: The type spec for this `RemoteValue` which is used to trace
      functions that take this `RemoteValue` as input.
docstr_tok: ["Initializes","a","`","RemoteValueImpl","`",".","Args",":","closure",":","The","closure","from","which","the","`","RemoteValue","`","is","created",".","type_spec",":","The","type","spec","for","this","`","RemoteValue","`","which","is","used","to","trace","functions","that","take","this","`","RemoteValue","`","as","input","."]
code: def __init__(
      self, closure, type_spec
  ):  # pylint: disable=super-init-not-called
      """Initializes a `RemoteValueImpl`.
  
      Args:
        closure: The closure from which the `RemoteValue` is created.
        type_spec: The type spec for this `RemoteValue` which is used to trace
          functions that take this `RemoteValue` as input.
      """
      self._closure = closure
      self._type_spec = type_spec
      self._values = None
      self._has_fetched_to_local = False
      self._has_fetched_to_local_lock = threading.Lock()
      self._fetched_tensors = None
      self._error = None
      self._status_available_event = threading.Event()
      self._status = remote_value.RemoteValueStatus.NOT_READY
  
imports: import threading
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.data.ops.options import ExternalStatePolicy
  from tensorflow.python.distribute import input_lib
  from tensorflow.python.distribute.coordinator import remote_value
  from tensorflow.python.eager import context
  from tensorflow.python.eager import def_function
  from tensorflow.python.eager import function
  from tensorflow.python.framework import composite_tensor
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import type_spec
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_dataset_ops
  from tensorflow.python.ops import gen_experimental_dataset_ops
  from tensorflow.python.ops import variable_scope
  from tensorflow.python.util import nest
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 1 to create a new RemoteValueImpl object from inherited base classes: remote_value with example: obj = RemoteValueImpl(closure, type_spec)