INNER CODE UNIT · Python

get_placeholder_scope

deepchem/deepchem · contrib/tensorflow_models/__init__.py:66

  def get_placeholder_scope(graph, name_scopes):
    """Gets placeholder scope."""
    placeholder_root = "placeholders"
    return TensorflowGraph.shared_name_scope(placeholder_root, graph,
                                             name_scopes)

  @staticmethod
  def shared_name_scope(name, graph, name_scopes):
    """Returns a singleton TensorFlow scope with the given name.

    Used to prevent '_1'-appended scopes when sharing scopes with child classes.

    Args:
      name: String. Name scope for group of operations.
    Returns:
      tf.name_scope with the provided name.
    """
    with graph.as_default():

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…