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 822b839 commit b1fc728Copy full SHA for b1fc728
tools/count_sample.py
@@ -1,8 +1,13 @@
1
# 统计 samples 目录下, graph_net.json 文件的数量
2
import os
3
4
+
5
+filename = os.path.abspath(__file__)
6
+root_dir = os.path.dirname(os.path.dirname(filename))
7
+samples_dir = os.path.join(root_dir, "samples")
8
9
graph_net_count = 0
-for root, dirs, files in os.walk("../samples"):
10
+for root, dirs, files in os.walk(samples_dir):
11
for file in files:
12
if file == "graph_net.json":
13
graph_net_count += 1
0 commit comments