@tracing.trace(span=True)
async def create_value(self, value, type_spec=None):
    'Embeds `value` of type `type_spec` within this executor.\n\n    Args:\n      value: An object that represents the value to embed within the executor.\n      type_spec: The `tff.Type` of the value represented by this object, or\n        something convertible to it. Can optionally be `None` if `value` is an\n        instance of `typed_object.TypedObject`.\n\n    Returns:\n      An instance of `EagerValue`.\n\n    Raises:\n      RuntimeError: If not executing eagerly.\n      TypeError: If the arguments are of the wrong types.\n      ValueError: If the type was not specified and cannot be determined from\n        the value.\n    '
    if (not tf.executing_eagerly()):
        raise RuntimeError('The eager executor may only be used in eager mode.')
    return EagerValue(value, self._tf_function_cache, type_spec, self._device)
Embeds `value` of type `type_spec` within this executor.

Args:
  value: An object that represents the value to embed within the executor.
  type_spec: The `tff.Type` of the value represented by this object, or
    something convertible to it. Can optionally be `None` if `value` is an
    instance of `typed_object.TypedObject`.

Returns:
  An instance of `EagerValue`.

Raises:
  RuntimeError: If not executing eagerly.
  TypeError: If the arguments are of the wrong types.
  ValueError: If the type was not specified and cannot be determined from
    the value.
@tracing.trace(span=True)
async def create_value(self, value, type_spec=None):
    'Embeds `value` of type `type_spec` within this executor.\n\n    Args:\n      value: An object that represents the value to embed within the executor.\n      type_spec: The `tff.Type` of the value represented by this object, or\n        something convertible to it. Can optionally be `None` if `value` is an\n        instance of `typed_object.TypedObject`.\n\n    Returns:\n      An instance of `EagerValue`.\n\n    Raises:\n      RuntimeError: If not executing eagerly.\n      TypeError: If the arguments are of the wrong types.\n      ValueError: If the type was not specified and cannot be determined from\n        the value.\n    '
    if (not tf.executing_eagerly()):
        raise RuntimeError('The eager executor may only be used in eager mode.')
    return EagerValue(value, self._tf_function_cache, type_spec, self._device)