def boosted_trees_deserialize_ensemble(tree_ensemble_handle, stamp_token, tree_ensemble_serialized, name=None):
    'Deserializes a serialized tree ensemble config and replaces current tree\n\n  ensemble.\n\n  Args:\n    tree_ensemble_handle: A `Tensor` of type `resource`.\n      Handle to the tree ensemble.\n    stamp_token: A `Tensor` of type `int64`.\n      Token to use as the new value of the resource stamp.\n    tree_ensemble_serialized: A `Tensor` of type `string`.\n      Serialized proto of the ensemble.\n    name: A name for the operation (optional).\n\n  Returns:\n    The created Operation.\n  '
    _ctx = _context._context
    if ((_ctx is None) or (not _ctx._eager_context.is_eager)):
        (_, _, _op) = _op_def_lib._apply_op_helper('BoostedTreesDeserializeEnsemble', tree_ensemble_handle=tree_ensemble_handle, stamp_token=stamp_token, tree_ensemble_serialized=tree_ensemble_serialized, name=name)
        return _op
        _result = None
        return _result
    else:
        try:
            _result = _pywrap_tensorflow.TFE_Py_FastPathExecute(_ctx._context_handle, _ctx._eager_context.device_name, 'BoostedTreesDeserializeEnsemble', name, _ctx._post_execution_callbacks, tree_ensemble_handle, stamp_token, tree_ensemble_serialized)
            return _result
        except _core._FallbackException:
            return boosted_trees_deserialize_ensemble_eager_fallback(tree_ensemble_handle, stamp_token, tree_ensemble_serialized, name=name, ctx=_ctx)
        except _core._NotOkStatusException as e:
            if (name is not None):
                message = ((e.message + ' name: ') + name)
            else:
                message = e.message
            _six.raise_from(_core._status_to_exception(e.code, message), None)
Deserializes a serialized tree ensemble config and replaces current tree

ensemble.

Args:
  tree_ensemble_handle: A `Tensor` of type `resource`.
    Handle to the tree ensemble.
  stamp_token: A `Tensor` of type `int64`.
    Token to use as the new value of the resource stamp.
  tree_ensemble_serialized: A `Tensor` of type `string`.
    Serialized proto of the ensemble.
  name: A name for the operation (optional).

Returns:
  The created Operation.
def boosted_trees_deserialize_ensemble(tree_ensemble_handle, stamp_token, tree_ensemble_serialized, name=None):
    'Deserializes a serialized tree ensemble config and replaces current tree\n\n  ensemble.\n\n  Args:\n    tree_ensemble_handle: A `Tensor` of type `resource`.\n      Handle to the tree ensemble.\n    stamp_token: A `Tensor` of type `int64`.\n      Token to use as the new value of the resource stamp.\n    tree_ensemble_serialized: A `Tensor` of type `string`.\n      Serialized proto of the ensemble.\n    name: A name for the operation (optional).\n\n  Returns:\n    The created Operation.\n  '
    _ctx = _context._context
    if ((_ctx is None) or (not _ctx._eager_context.is_eager)):
        (_, _, _op) = _op_def_lib._apply_op_helper('BoostedTreesDeserializeEnsemble', tree_ensemble_handle=tree_ensemble_handle, stamp_token=stamp_token, tree_ensemble_serialized=tree_ensemble_serialized, name=name)
        return _op
        _result = None
        return _result
    else:
        try:
            _result = _pywrap_tensorflow.TFE_Py_FastPathExecute(_ctx._context_handle, _ctx._eager_context.device_name, 'BoostedTreesDeserializeEnsemble', name, _ctx._post_execution_callbacks, tree_ensemble_handle, stamp_token, tree_ensemble_serialized)
            return _result
        except _core._FallbackException:
            return boosted_trees_deserialize_ensemble_eager_fallback(tree_ensemble_handle, stamp_token, tree_ensemble_serialized, name=name, ctx=_ctx)
        except _core._NotOkStatusException as e:
            if (name is not None):
                message = ((e.message + ' name: ') + name)
            else:
                message = e.message
            _six.raise_from(_core._status_to_exception(e.code, message), None)