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
7214954d
"git@developer.sourcefind.cn:chenpangpang/ComfyUI.git" did not exist on "0a6fd49a3ef730741fc5f43ca89f3fadd3401129"
Unverified
Commit
7214954d
authored
Jul 28, 2020
by
Lysandre Debut
Committed by
GitHub
Jul 28, 2020
Browse files
Should return a tuple for serialization (#6061)
parent
7a68d401
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/pipelines.py
src/transformers/pipelines.py
+1
-1
No files found.
src/transformers/pipelines.py
View file @
7214954d
...
@@ -2122,6 +2122,6 @@ def pipeline(
...
@@ -2122,6 +2122,6 @@ def pipeline(
"Model might be a PyTorch model (ending with `.bin`) but PyTorch is not available. "
"Model might be a PyTorch model (ending with `.bin`) but PyTorch is not available. "
"Trying to load the model with Tensorflow."
"Trying to load the model with Tensorflow."
)
)
model
=
model_class
.
from_pretrained
(
model
,
config
=
config
,
**
model_kwargs
)
model
=
model_class
.
from_pretrained
(
model
,
config
=
config
,
return_tuple
=
True
,
**
model_kwargs
)
return
task_class
(
model
=
model
,
tokenizer
=
tokenizer
,
modelcard
=
modelcard
,
framework
=
framework
,
task
=
task
,
**
kwargs
)
return
task_class
(
model
=
model
,
tokenizer
=
tokenizer
,
modelcard
=
modelcard
,
framework
=
framework
,
task
=
task
,
**
kwargs
)
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