Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
681ccc59
You need to sign in or sign up before continuing.
Unverified
Commit
681ccc59
authored
Sep 08, 2021
by
Ningxin Zheng
Committed by
GitHub
Sep 08, 2021
Browse files
remove pdb (#4151)
parent
396ae65c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
nni/retiarii/converter/graph_gen.py
nni/retiarii/converter/graph_gen.py
+4
-6
No files found.
nni/retiarii/converter/graph_gen.py
View file @
681ccc59
...
@@ -818,12 +818,10 @@ class GraphConverterWithShape(GraphConverter):
...
@@ -818,12 +818,10 @@ class GraphConverterWithShape(GraphConverter):
graph
.
del_edge
(
out_edge
)
graph
.
del_edge
(
out_edge
)
for
output_node_edge
in
node_graph
.
output_node
.
incoming_edges
:
for
output_node_edge
in
node_graph
.
output_node
.
incoming_edges
:
if
output_node_edge
.
head_slot
==
out_edge
.
tail_slot
:
if
output_node_edge
.
head_slot
==
out_edge
.
tail_slot
:
try
:
graph
.
add_edge
(
graph
.
add_edge
(
head
=
(
id_to_new_node
[
output_node_edge
.
head
.
id
],
output_node_edge
.
head_slot
),
head
=
(
id_to_new_node
[
output_node_edge
.
head
.
id
],
output_node_edge
.
head_slot
),
tail
=
(
out_edge
.
tail
,
out_edge
.
tail_slot
))
tail
=
(
out_edge
.
tail
,
out_edge
.
tail_slot
))
except
:
import
pdb
;
pdb
.
set_trace
()
for
edge
in
node_graph
.
edges
:
for
edge
in
node_graph
.
edges
:
if
edge
.
head
==
node_graph
.
input_node
or
edge
.
tail
==
node_graph
.
output_node
:
if
edge
.
head
==
node_graph
.
input_node
or
edge
.
tail
==
node_graph
.
output_node
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment