[docs]@torch.jit.unuseddefto_tensor(inpt:Any)->torch.Tensor:"""[DEPREACTED] Use to_image() and to_dtype() instead."""warnings.warn("The function `to_tensor(...)` is deprecated and will be removed in a future release. ""Instead, please use `to_image(...)` followed by `to_dtype(..., dtype=torch.float32, scale=True)`.")return_F.to_tensor(inpt)
defget_image_size(inpt:torch.Tensor)->List[int]:warnings.warn("The function `get_image_size(...)` is deprecated and will be removed in a future release. ""Instead, please use `get_size(...)` which returns `[h, w]` instead of `[w, h]`.")return_F.get_image_size(inpt)
Docs
Access comprehensive developer documentation for PyTorch
To analyze traffic and optimize your experience, we serve cookies on this site. By clicking or navigating, you agree to allow our usage of cookies. As the current maintainers of this site, Facebook’s Cookies Policy applies. Learn more, including about available controls: Cookies Policy.