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
chenpangpang
transformers
Commits
08fad080
Unverified
Commit
08fad080
authored
Nov 30, 2022
by
Sanchit Gandhi
Committed by
GitHub
Nov 30, 2022
Browse files
[modelcard] Check for IterableDataset (#20495)
parent
ab9fe452
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/transformers/modelcard.py
src/transformers/modelcard.py
+2
-2
No files found.
src/transformers/modelcard.py
View file @
08fad080
...
...
@@ -339,9 +339,9 @@ def is_hf_dataset(dataset):
if
not
is_datasets_available
():
return
False
from
datasets
import
Dataset
from
datasets
import
Dataset
,
IterableDataset
return
isinstance
(
dataset
,
Dataset
)
return
isinstance
(
dataset
,
(
Dataset
,
IterableDataset
)
)
def
_get_mapping_values
(
mapping
):
...
...
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