parameters: (value, name=None, dtype=None, shape=None)
return_statement: return placeholder
docstring: Creates a placeholder for `value` and propagates shape info to it.
docstring_summary: Creates a placeholder for `value` and propagates shape info to it.
docstring_tokens: Creates a placeholder for value and propagates shape info to it .
function: def _create_substitute_placeholder(value, name=None, dtype=None, shape=None):
    """Creates a placeholder for `value` and propagates shape info to it."""
    # Note: setting ops.control_dependencies(None) ensures we always put
    # capturing placeholders outside of any control flow context.
    if shape is None:
      shape = value.shape
    with ops.control_dependencies(None):
      placeholder = graph_placeholder(
          dtype=dtype or value.dtype, shape=shape, name=name)
    handle_data_util.copy_handle_data(value, placeholder)
    return placeholder
function_tokens: def _create_substitute_placeholder ( value , name = None , dtype = None , shape = None ) : # Note: setting ops.control_dependencies(None) ensures we always put # capturing placeholders outside of any control flow context. if shape is None : shape = value . shape with ops . control_dependencies ( None ) : placeholder = graph_placeholder ( dtype = dtype or value . dtype , shape = shape , name = name ) handle_data_util . copy_handle_data ( value , placeholder ) return placeholder