def make_view_from_scope(scope, graph): """Make a subgraph from a name scope. Args: scope: the name of the scope. graph: the tf.Graph. Returns: A subgraph view representing the given scope. """ ops = select.get_name_scope_ops(graph, scope) return SubGraphView(ops)
def make_view_from_scope(scope, graph): """Make a subgraph from a name scope. Args: scope: the name of the scope. graph: the `tf.Graph`. Returns: A subgraph view representing the given scope. """ ops = select.get_name_scope_ops(graph, scope) return SubGraphView(ops)