torch_ecg.utils.add_kwargs¶
- torch_ecg.utils.add_kwargs(func: callable, **kwargs: Any) callable [source]¶
Add keyword arguments to a function.
This function is used to add keyword arguments to a function in order to make it compatible with other functions。
- Parameters:
func (callable) – The function to be decorated.
kwargs (dict) – The keyword arguments to be added.
- Returns:
The decorated function, with the keyword arguments added.
- Return type:
callable