summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorPeter Goldsborough <peter@goldsborough.me>2018-02-12 20:26:26 -0800
committerSoumith Chintala <soumith@gmail.com>2018-02-12 23:26:26 -0500
commit2d5fbe6e0de1e5dfa292afedec34b277c14d7c10 (patch)
tree44003eb36bec371c3fddf3e6965a714caf47b61f /.clang-format
parent0ef10385b2d82b87d89124a6dc3e0d95dfb97a51 (diff)
downloadpytorch-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-format1
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