We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9849633 commit 5133cb7Copy full SHA for 5133cb7
graph_net/test_compiler_util.py
@@ -124,7 +124,7 @@ def get_model_name(model_path):
124
data = json.load(f)
125
model_name = data.get("model_name", None)
126
127
- if model_name is not None:
+ if model_name is None:
128
fields = model_path.split(os.sep)
129
pattern = rf"^subgraph(_\d+)?$"
130
model_name = fields[-2] if re.match(pattern, fields[-1]) else fields[-1]
0 commit comments