make convert_image_dtype scriptable (#2485)
* make convert_image_dtype scriptable
* move convert dtype to functional_tensor since only works on tensors
* retain availability of convert_image_dtype in functional.py
* Update code and tests
* Replaced int by torch.dtype
* int -> torch.dtype and use F instead of F_t
* Update functional_tensor.py
Co-authored-by:
vfdev-5 <vfdev.5@gmail.com>
Showing
Please register or sign in to comment