-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Open
Description
We have to proper combination
def get_size(inpt: datapoints._InputTypeJIT) -> List[int]: |
vision/torchvision/transforms/v2/utils.py
Line 35 in 9b82df4
def query_size(flat_inputs: List[Any]) -> Tuple[int, int]: |
However, we have the combination below that diverges on the name
def get_dimensions(inpt: Union[datapoints._ImageTypeJIT, datapoints._VideoTypeJIT]) -> List[int]: |
vision/torchvision/transforms/v2/utils.py
Line 21 in 9b82df4
def query_chw(flat_inputs: List[Any]) -> Tuple[int, int, int]: |
I don't recall anymore how we ended up with this, but we should correct it.
My vote is out for also calling it query_dimensions
since we already have
def get_dimensions(img: Tensor) -> List[int]: |
in v1.
cc @vfdev-5