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
OpenDAS
opencompass
Commits
b8bf16e8
Unverified
Commit
b8bf16e8
authored
Sep 05, 2023
by
Leymore
Committed by
GitHub
Sep 05, 2023
Browse files
[Fix] zero retriever add default value (#361)
parent
764c2f79
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
opencompass/openicl/icl_retriever/icl_zero_retriever.py
opencompass/openicl/icl_retriever/icl_zero_retriever.py
+1
-1
No files found.
opencompass/openicl/icl_retriever/icl_zero_retriever.py
View file @
b8bf16e8
...
...
@@ -22,7 +22,7 @@ class ZeroRetriever(BaseRetriever):
def
__init__
(
self
,
dataset
,
ice_eos_token
:
Optional
[
str
]
=
''
)
->
None
:
super
().
__init__
(
dataset
,
''
,
ice_eos_token
,
0
)
def
retrieve
(
self
,
id_list
:
List
[
int
])
->
List
[
List
]:
def
retrieve
(
self
,
id_list
:
List
[
int
]
=
[]
)
->
List
[
List
]:
if
id_list
:
get_logger
().
warning
(
'id_list is not empty, but will be ignored.'
)
rtr_idx_list
=
[[]
for
_
in
range
(
len
(
self
.
test_ds
))]
...
...
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