(*names)
| 413 | raise unimplemented(f"non-const NNModule method {name}") |
| 414 | |
| 415 | def get_kwargs(*names): |
| 416 | assert_all_args_kwargs_const() |
| 417 | fn = getattr(module, name) |
| 418 | bound_args = inspect.signature(fn).bind( |
| 419 | *([x.as_python_constant() for x in args]), |
| 420 | **{k: v.as_python_constant() for k, v in kwargs.items()}, |
| 421 | ) |
| 422 | bound_args.apply_defaults() |
| 423 | bound_args = bound_args.arguments |
| 424 | return {k: bound_args[k] for k in names} |
| 425 | |
| 426 | def wrap_values(items): |
| 427 | result = [] |
nothing calls this directly
no test coverage detected