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
2bdd9fa2
Unverified
Commit
2bdd9fa2
authored
Nov 07, 2022
by
Yih-Dar
Committed by
GitHub
Nov 07, 2022
Browse files
Fix `generate_dummy_inputs` for `ImageGPTOnnxConfig` (#20103)
Co-authored-by:
ydshieh
<
ydshieh@users.noreply.github.com
>
parent
cfaeb153
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/imagegpt/configuration_imagegpt.py
src/transformers/models/imagegpt/configuration_imagegpt.py
+1
-1
No files found.
src/transformers/models/imagegpt/configuration_imagegpt.py
View file @
2bdd9fa2
...
...
@@ -197,6 +197,6 @@ class ImageGPTOnnxConfig(OnnxConfig):
"""
input_image
=
self
.
_generate_dummy_images
(
batch_size
,
num_channels
,
image_height
,
image_width
)
inputs
=
dict
(
preprocessor
(
input_image
,
framework
))
inputs
=
dict
(
preprocessor
(
images
=
input_image
,
return_tensors
=
framework
))
return
inputs
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