is_same_graph complains about Exception: inputs is already owned by another fgraph