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
c82b38a3
Unverified
Commit
c82b38a3
authored
Apr 12, 2024
by
amyeroberts
Committed by
GitHub
Apr 12, 2024
Browse files
Fix pipeline logger.warning_once bug (#30195)
Fix warning bug
parent
2c66600c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
src/transformers/pipelines/base.py
src/transformers/pipelines/base.py
+0
-1
No files found.
src/transformers/pipelines/base.py
View file @
c82b38a3
...
...
@@ -1181,7 +1181,6 @@ class Pipeline(_ScikitCompat):
logger
.
warning_once
(
"You seem to be using the pipelines sequentially on GPU. In order to maximize efficiency please use a"
" dataset"
,
UserWarning
,
)
is_dataset
=
Dataset
is
not
None
and
isinstance
(
inputs
,
Dataset
)
...
...
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