Skip to content

Commit 52e5b6b

Browse files
committed
output.keys() -> output
1 parent 05f7584 commit 52e5b6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/transformers/modeling_tf_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1279,7 +1279,7 @@ def serving_output(self, output):
12791279
"""
12801280
if not isinstance(output, ModelOutput):
12811281
return output
1282-
for key in output.keys():
1282+
for key in output:
12831283
if key.endswith("hidden_states") and not getattr(self.config, "output_hidden_states", False):
12841284
output[key] = None
12851285
elif key.endswith("attentions") and not getattr(self.config, "output_attentions", False):

0 commit comments

Comments
 (0)