mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
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:
committed by
Facebook GitHub Bot
parent
13ac0019ae
commit
3d904b56ec
@ -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());
|
||||
|
Reference in New Issue
Block a user