(func)
| 57 | |
| 58 | |
| 59 | def get_default_args(func): |
| 60 | signature = inspect.signature(func) |
| 61 | return {k: v.default for k, v in signature.parameters.items() if v.default is not inspect.Parameter.empty} |
| 62 | |
| 63 | |
| 64 | # We need this hacky function since torch doesn't consistently name or place the input tensor args |
no outgoing calls
no test coverage detected