pytorch
a675770a - Deactivate the tracking of gradients in sampling functions within OpInfos (#68522)

Commit
2 years ago
Deactivate the tracking of gradients in sampling functions within OpInfos (#68522) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/68522 Some OpInfos were inadvertibly generating samples with `grad_fn`. For example, when using functions like `transpose()` or `conj()` on the inputs to generate transposed or conjugated inputs. This PR corrects this and deactivates the tracking of gradients in all the sampling functions. Test Plan: Imported from OSS Reviewed By: anjali411 Differential Revision: D33774420 Pulled By: mruberry fbshipit-source-id: da0e6189a2d67a2cb0fd458054558d36dbad9b61 (cherry picked from commit 42b0870774ff4a07fbba1d991f3ea0a4dbae735a)
Author
Committer
Parents
Loading