(self, inpt: Any, params: Dict[str, Any])
| 106 | return dict(size=(left, top, right, bottom)) |
| 107 | |
| 108 | def transform(self, inpt: Any, params: Dict[str, Any]) -> Any: |
| 109 | size = params['size'] |
| 110 | |
| 111 | ret = transforms.functional.pad(inpt, size, fill=self.pad_mean) |
| 112 | return ret |
| 113 | |
| 114 | |
| 115 | class PadToSize(TV2Compat): |
nothing calls this directly
no outgoing calls
no test coverage detected