parameters: (name, tensor, op_cache)
return_statement: return new_op.outputs[tensor.value_index]
docstring: Replace dependencies on variables with their initialized values.
  
    Args:
      name: Variable name.
      tensor: A `Tensor`. The tensor to replace.
      op_cache: A dict mapping operation names to `Operation`s. Used to memoize
        the results so as to avoid creating redundant operations.
  
    Returns:
      A `Tensor` compatible with `tensor`. Any inputs that lead to variable
      values will be replaced with a corresponding graph that uses the
      variable's initialized values. This is done on a best-effort basis. If no
      modifications need to be made then `tensor` will be returned unchanged.
docstring_summary: Replace dependencies on variables with their initialized values.
docstring_tokens: Replace dependencies on variables with their initialized values .
function: def _safe_initial_value_from_tensor(name, tensor, op_cache):
    """Replace dependencies on variables with their initialized values.
  
    Args:
      name: Variable name.
      tensor: A `Tensor`. The tensor to replace.
      op_cache: A dict mapping operation names to `Operation`s. Used to memoize
        the results so as to avoid creating redundant operations.
  
    Returns:
      A `Tensor` compatible with `tensor`. Any inputs that lead to variable
      values will be replaced with a corresponding graph that uses the
      variable's initialized values. This is done on a best-effort basis. If no
      modifications need to be made then `tensor` will be returned unchanged.
    """
    op = tensor.op
    new_op = op_cache.get(op.name)
    if new_op is None:
      new_op = _safe_initial_value_from_op(name, op, op_cache)
      op_cache[op.name] = new_op
    return new_op.outputs[tensor.value_index]
function_tokens: def _safe_initial_value_from_tensor ( name , tensor , op_cache ) : op = tensor . op new_op = op_cache . get ( op . name ) if new_op is None : new_op = _safe_initial_value_from_op ( name , op , op_cache ) op_cache [ op . name ] = new_op return new_op . outputs [ tensor . value_index ]