pytorch
d5c13609 - improve .view() performance (#30554)

Commit
6 years ago
improve .view() performance (#30554) Summary: Improve .view() performance by not calling set_ and instead restriding returned alias. This improves performance of .view() operation from ~500ns to ~360 ns Pull Request resolved: https://github.com/pytorch/pytorch/pull/30554 Test Plan: covered by existing tests Differential Revision: D18759896 Pulled By: ngimel fbshipit-source-id: 9757c93158bc55e9c87dc30ac3415ba8f8b849e5
Author
Natalia Gimelshein
Parents
Loading