[proto] Reduce number of calls of __torch_function__ (#6681)
* [proto] Reduce number of calls of __torch_function__ * Use DisableTorchFunction and super * Use self._tensor * Fixes mypy and color space handling * revert Image.new_like * WIP * Perf opt with ref to tensor and properties * Removed requires_grad property * Use _tensor ref * Revert "Use _tensor ref" This reverts commit 38f8e21242830fed46ddf31287edb67c1abd124a. * Update torchvision/prototype/features/_feature.py Co-authored-by:Philip Meier <github.pmeier@posteo.de> Co-authored-by:
Philip Meier <github.pmeier@posteo.de>
Showing
Please register or sign in to comment