Created
June 16, 2022 02:01
-
-
Save goddoe/9cad40778c8e1afdd0bcea74c750d0f9 to your computer and use it in GitHub Desktop.
convenient argument input
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| forward_args = inspect.getfullargspec(self.model.forward).args[1:] | |
| x = {k: v for k, vin self.transform(text) if k in forward_args} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment