s/AutoNonVariableTypeMode/AutoDispatchBelowAutograd/ (#56423)

Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/56423

Test Plan: Imported from OSS

Reviewed By: bertmaher

Differential Revision: D27866606

Pulled By: ailzhang

fbshipit-source-id: e3942356dc3133d1c5722de40ec0d45e6a60f2f1
This commit is contained in:
Ailing Zhang
2021-04-20 17:16:20 -07:00
committed by Facebook GitHub Bot
parent 13ac0019ae
commit 3d904b56ec
30 changed files with 61 additions and 61 deletions

View File

@ -81,7 +81,7 @@ void get_autograd_operator_from_registry_and_execute() {
}
void get_autograd_operator_from_registry_and_execute_in_nograd_mode() {
at::AutoNonVariableTypeMode _var_guard(true);
at::AutoDispatchBelowAutograd _var_guard(true);
torch::Tensor x = torch::randn({5,5}, torch::requires_grad());
torch::Tensor y = torch::randn({5,5}, torch::requires_grad());