Skip to content

Commit ae9e74b

Browse files
committed
Merge branch 'mergeability-pr-45053' into all-defects
2 parents 02ae108 + d64d1a5 commit ae9e74b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/transformers/processing_utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -683,9 +683,8 @@ def __call__(
683683
"feature_extractor": (audio, "audio_kwargs"),
684684
}
685685
outputs = {}
686-
for attribute_name in self.get_attributes():
686+
for attribute_name, (input_data, input_kwargs) in attribute_to_kwargs.items():
687687
attribute = getattr(self, attribute_name, None)
688-
input_data, input_kwargs = attribute_to_kwargs[attribute_name]
689688
if input_data is not None and attribute is not None:
690689
attribute_output = attribute(input_data, **kwargs[input_kwargs])
691690
outputs.update(attribute_output)

0 commit comments

Comments
 (0)