Skip to content

tf.graph_util.extract_sub_graph should raise a better error message #13047

Closed

Description

@Sentient07

Hi,

I used tf.graph_util.extract_sub_graph to get a subgraph reaching a particular dest node. My dest_node is say conv2d_transpose_7. I by mistake gave it as a string in the second parameter. Python parses String too as a list and it raised an error AssertionError: c is not in graph. The extract_sub_graph should first check if the second parameter isinstace of a List so that it would be convenient to debug this kind of error in the future. A screenshot is attached.

Thanks,

screenshot at sep 14 23-53-32

Activity

  1. facaiy commented on Sep 14, 2017

    @facaiy
    Member

    Sounds reasonable, I can work on it.

  2. reedwm commented on Sep 14, 2017

    @reedwm
    Contributor

    Marking as contributions welcome since @facaiy is working on it

  3. added 5 commits that reference this issue on May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions