torch.fx.operator_schemas.normalize_module
- torch.fx.operator_schemas.normalize_module(root, target, args, kwargs=None, normalize_to_only_use_kwargs=False)
Returns normalized arguments to PyTorch modules. This means that args/kwargs will be matched up to the functional’s signature and return exclusively kwargs in positional order if normalize_to_only_use_kwargs is True. Also populates default values. Does not support positional-only parameters or varargs parameters (, ).