Skip to content

Commit d3cb0b8

Browse files
committed
add functional tools
1 parent 0892d11 commit d3cb0b8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tools/count_sample.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# 统计 samples 目录下, graph_net.json 文件的数量
2+
import os
3+
4+
graph_net_count = 0
5+
for root, dirs, files in os.walk("../samples"):
6+
for file in files:
7+
if file == "graph_net.json":
8+
graph_net_count += 1
9+
print(f"Number of graph_net.json files: {graph_net_count}")

0 commit comments

Comments
 (0)