Skip to content

Commit

Permalink
fix: added handling for unknown layers
Browse files Browse the repository at this point in the history
  • Loading branch information
MLRichter committed Jan 23, 2022
1 parent 8d81d41 commit 03f4c3a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rfa_toolbox/encodings/pytorch/ingest_architecture.py
Expand Up @@ -31,7 +31,10 @@ def make_graph(
def find_name(i, self_input, suffix=None):
if i == self_input:
return suffix
cur = i.node().s("name")
try:
cur = i.node().s("name")
except RuntimeError:
return suffix + "-unknownType"
if suffix is not None:
cur = cur + "." + suffix
# print(cur)
Expand Down

0 comments on commit 03f4c3a

Please sign in to comment.