I am maintaining a program that used to do things like
But in the latest version of transformers/training_args (v4.8.2), these two functions do not take arguments anymore. Instead, they act on ‘self’, which is a TrainingArgument object:
to_sanitized_dict(self) -> Dict[str, Any].
Therefore, I wonder how do I change my implementation accordingly in order to make the same functionality works. Copying functions from transformers/training_args to my object class solves part of the issue, but works bad when the function has dependencies on other things in transformers/training_args, and it doesn’t make a lot of sense to copy everything from the transformers/training_args file to my object class.
What is the best way of doing this? Thank you!