Skip to content

Commit 8bfaa56

Browse files
committed
pass models without op list
1 parent e88decb commit 8bfaa56

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

graph_net/torch/typical_sequence_split_points.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,9 @@ def _resolve_token_to_ops(
116116
return [f"Unknown({tid})"]
117117

118118
def _load_op_names_from_file(self, txt_path: Path) -> List[str]:
119-
assert txt_path.exists(), f"{str(txt_path)=}"
119+
if not txt_path.exists():
120+
print(f"File not found: {txt_path}")
121+
return []
120122
return txt_path.read_text().split("\n")
121123

122124
def _calculate_token_lengths(

0 commit comments

Comments
 (0)