Skip to content

Commit

Permalink
Fix generate_dummy_inputs for ImageGPTOnnxConfig (huggingface#20103)
Browse files Browse the repository at this point in the history
Co-authored-by: ydshieh <[email protected]>
  • Loading branch information
ydshieh and ydshieh authored Nov 7, 2022
1 parent cfaeb15 commit 2bdd9fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/models/imagegpt/configuration_imagegpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,6 @@ def generate_dummy_inputs(
"""

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

0 comments on commit 2bdd9fa

Please sign in to comment.