Expose to python the backward AD view_func (#89586)

This will be useful for other systems (AOTAutograd) that want to replay autograd views.

FYI @bdhirsh
Pull Request resolved: https://github.com/pytorch/pytorch/pull/89586
Approved by: https://github.com/soulitzer
This commit is contained in:
albanD
2022-11-24 03:39:55 +00:00
committed by PyTorch MergeBot
parent 4cb6bbbe27
commit c79489c8e6
6 changed files with 73 additions and 12 deletions

View File

@ -791,6 +791,11 @@ inline Variable make_variable(
return Variable();
}
namespace utils {
TORCH_API bool has_same_meta(const Variable& base, const Variable& other);
} // namespace utils
} // namespace autograd
} // namespace torch