pytorch/test/cpp
Jeffrey Wan 1733d10399 Warn when backward() is called with create_graph=True (#59412)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/4661
- Add warnings in engine's `execute` function so it can be triggered through both cpp and python codepaths
- Adds an RAII guard version of `c10::Warning::set_warnAlways` and replaces all prior usages of the set_warnAlways with the new one

Pull Request resolved: https://github.com/pytorch/pytorch/pull/59412

Reviewed By: jbschlosser

Differential Revision: D28969294

Pulled By: soulitzer

fbshipit-source-id: b03369c926a3be18ce1cf363b39edd82a14245f0
2021-06-08 17:19:04 -07:00
..
api Warn when backward() is called with create_graph=True (#59412) 2021-06-08 17:19:04 -07:00
common
dist_autograd Fix distributed autograd gradients synchronization (#57792) 2021-05-09 17:32:59 -07:00
jit Add kMaxSupportedBytecodeVersion for Lite Interpreter (#59472) 2021-06-04 17:55:02 -07:00
lite_interpreter_runtime [Pytorch Delegated Backend] Save function name in debug info (#57481) 2021-05-25 13:19:02 -07:00
rpc [1/n] [c10d] Introduce a new TCPStore constructor (#58328) 2021-06-05 07:50:02 -07:00
tensorexpr Revert D28819780: [TensorExpr] Fix handling of 0-dim tensors. 2021-06-04 19:25:30 -07:00
__init__.py remediation of S205607 2020-07-17 17:19:47 -07:00