replaced deprecated call to ByteTensor with from_numpy (#3813)
replaced deprecated call to ByteTensor with from_numpy (#3813)

replaced byteTensor with from_numpy

fixed lint issues and copy related worning

Co-authored-by: Sofiane Abbar <68e0dce54a9e2e87fcb590ec7b7e61e1b73ee778@fb.com>
Co-authored-by: Vasilis Vryniotis <d748cd3f763058dcf20e5489b9bc2373b78db68c@users.noreply.github.com>
pytorch/vision,pytorch/vision,pytorch/vision,pytorch/vision,pytorch/vision,pytorch/vision