(config: Mapping[str, Any])
| 21 | |
| 22 | |
| 23 | def instantiate_from_config(config: Mapping[str, Any]) -> Any: |
| 24 | if not "target" in config: |
| 25 | raise KeyError("Expected key `target` to instantiate.") |
| 26 | return get_obj_from_str(config["target"])(**config.get("params", dict())) |
| 27 | |
| 28 | |
| 29 | def wavelet_blur(image: Tensor, radius: int): |
no test coverage detected