MCPcopy
hub / github.com/pytorch/vision / __init__

Method __init__

torchvision/transforms/v2/_transform.py:28–30  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

26 _transformed_types: tuple[type | Callable[[Any], bool], ...] = (torch.Tensor, PIL.Image.Image)
27
28 def __init__(self) -> None:
29 super().__init__()
30 _log_api_usage_once(self)
31
32 def check_inputs(self, flat_inputs: list[Any]) -> None:
33 pass

Callers 1

__init__Method · 0.45

Calls 1

_log_api_usage_onceFunction · 0.90

Tested by

no test coverage detected