diff options
author | Peter Goldsborough <peter@goldsborough.me> | 2018-02-12 20:26:26 -0800 |
---|---|---|
committer | Soumith Chintala <soumith@gmail.com> | 2018-02-12 23:26:26 -0500 |
commit | 2d5fbe6e0de1e5dfa292afedec34b277c14d7c10 (patch) | |
tree | 44003eb36bec371c3fddf3e6965a714caf47b61f /.clang-format | |
parent | 0ef10385b2d82b87d89124a6dc3e0d95dfb97a51 (diff) | |
download | pytorch-2d5fbe6e0de1e5dfa292afedec34b277c14d7c10.tar.gz pytorch-2d5fbe6e0de1e5dfa292afedec34b277c14d7c10.tar.bz2 pytorch-2d5fbe6e0de1e5dfa292afedec34b277c14d7c10.zip |
Improve Variable interface (#5127)
* Improve Variable interface
* Address comments from @apaszke and @colesbury
* string ::operator= is not noexcept
* Remove ir.h from tracer_state.h to improve build times
* Make Variable a struct and pack SavedVariable fields
* Implement as_variable_ref
* grad_fn_ptr() -> grad_fn_unsafe()
* Reduce hackiness of set_type hack
* Include variable.h and edge.h in tracer_state.h because it uses them
* class Variable -> struct Variable because Windows cant even
* Make Variable::output_nr uint32_t instead of int
* Add comment about tracing state
* Replaced more static_cast<Variable&> and improve docs
* Remove SavedVariable destructor and construct members in init list
* Clarify docs for Variable
* Variable::set_version -> set_version_counter
Diffstat (limited to '.clang-format')
-rw-r--r-- | .clang-format | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format index 1307bf22ef..2b21aec682 100644 --- a/.clang-format +++ b/.clang-format @@ -37,6 +37,7 @@ BreakAfterJavaFieldAnnotations: false BreakStringLiterals: false ColumnLimit: 80 CommentPragmas: '^ IWYU pragma:' +CompactNamespaces: true ConstructorInitializerAllOnOneLineOrOnePerLine: true ConstructorInitializerIndentWidth: 4 ContinuationIndentWidth: 4 |