Skip to content

keys_to_ignore_at_inference -> output_keys_to_ignore_at_inference - #8857

Closed
sgugger wants to merge 1 commit into
masterfrom
rename_keys_inference
Closed

keys_to_ignore_at_inference -> output_keys_to_ignore_at_inference#8857
sgugger wants to merge 1 commit into
masterfrom
rename_keys_inference

Conversation

@sgugger

@sgugger sgugger commented Nov 30, 2020

Copy link
Copy Markdown
Collaborator

What does this PR do?

@patrickvonplaten mentioned in #8633 he was not happy with a name I picked, so I changed it.

@LysandreJik LysandreJik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, this was present in the v4.0.0, so changing this would be a breaking change, as it's a public attribute.

The simplest would be to have a property on configuration utils returning output_keys_to_ignore_at_inference when prompted with keys_to_ignore_at_inference, along with a deprecation warning.

@sgugger

sgugger commented Dec 1, 2020

Copy link
Copy Markdown
Collaborator Author

Not sure this is really worth the hassle then.

@patrickvonplaten

Copy link
Copy Markdown
Contributor

Not sure this is really worth the hassle then.

Agree, let's leave it. It's just a personal cosmetic change, so not worth the change.

@LysandreJik LysandreJik closed this Dec 1, 2020
@LysandreJik
LysandreJik deleted the rename_keys_inference branch April 28, 2022 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants