Skip to content

Commit 59a8ace

Browse files
committed
add log
1 parent ca985cb commit 59a8ace

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

graph_net/torch/graph_variable_renamer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,9 @@ def __call__(self, rel_model_path):
9191
self._update_weight_meta_py_file(src_model_path, dst_model_path)
9292
self._update_input_meta_py_file(src_model_path, dst_model_path)
9393
self._try_run(dst_model_path)
94-
except Exception:
94+
except Exception as e:
9595
print("Failed to rename variables of ", src_model_path)
96+
print(f"Error: {repr(e)}")
9697
print("Skipping this model and continuing...\n")
9798

9899
def _try_run(self, model_path):

0 commit comments

Comments
 (0)