Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
lm-evaluation-harness
Commits
6fdecc6f
Commit
6fdecc6f
authored
Dec 13, 2023
by
lintangsutawika
Browse files
reveresed os.walk
parent
ec656bb1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lm_eval/tasks/__init__.py
lm_eval/tasks/__init__.py
+1
-1
No files found.
lm_eval/tasks/__init__.py
View file @
6fdecc6f
...
@@ -131,7 +131,7 @@ def include_task_folder(task_dir: str, register_task: bool = True) -> None:
...
@@ -131,7 +131,7 @@ def include_task_folder(task_dir: str, register_task: bool = True) -> None:
"""
"""
Calling this function
Calling this function
"""
"""
for
root
,
subdirs
,
file_list
in
os
.
walk
(
task_dir
):
for
root
,
subdirs
,
file_list
in
reversed
(
list
(
os
.
walk
(
task_dir
)
))
:
# if (subdirs == [] or subdirs == ["__pycache__"]) and (len(file_list) > 0):
# if (subdirs == [] or subdirs == ["__pycache__"]) and (len(file_list) > 0):
for
f
in
file_list
:
for
f
in
file_list
:
if
f
.
endswith
(
".yaml"
):
if
f
.
endswith
(
".yaml"
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment