speedinghzl / CCNet

CCNet: Criss-Cross Attention for Semantic Segmentation (TPAMI 2020 & ICCV 2019).
MIT License
1.42k stars 277 forks source link

cc_attention does not support torch>=0.4.1 #17

Closed acgtyrant closed 5 years ago

acgtyrant commented 5 years ago

See #12 .

$ python build.py
generating /tmp/tmpm4ajuntj/__ext.c
setting the current directory to '/tmp/tmpm4ajuntj'
running build_ext
building '__ext' extension
creating mapbar
creating mapbar/acgtyrant
creating mapbar/acgtyrant/Projects
creating mapbar/acgtyrant/Projects/ccnet
creating mapbar/acgtyrant/Projects/ccnet/cc_attention
creating mapbar/acgtyrant/Projects/ccnet/cc_attention/src
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include -I/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/TH -I/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC -I/usr/local/cuda/include -I/mapbar/acgtyrant/Projects/ccnet/.env/include -I/usr/include/python3.5m -c __ext.c -o ./__ext.o -std=c99 -std=c99
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include -I/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/TH -I/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC -I/usr/local/cuda/include -I/mapbar/acgtyrant/Projects/ccnet/.env/include -I/usr/include/python3.5m -c /mapbar/acgtyrant/Projects/ccnet/cc_attention/src/lib_cffi.cpp -o ./mapbar/acgtyrant/Projects/ccnet/cc_attention/src/lib_cffi.o -std=c99 -std=c99
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-std=c99’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-std=c99’ is valid for C/ObjC but not for C++
In file included from /usr/include/c++/5/type_traits:35:0,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:19,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Error.h:4,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Allocator.h:6,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/TH/THAllocator.h:6,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC/THCGeneral.h:5,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC/THC.h:4,
                 from /mapbar/acgtyrant/Projects/ccnet/cc_attention/src/lib_cffi.cpp:3:
/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
 #error This file requires compiler and library support \
  ^
In file included from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Error.h:4:0,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Allocator.h:6,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/TH/THAllocator.h:6,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC/THCGeneral.h:5,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC/THC.h:4,
                 from /mapbar/acgtyrant/Projects/ccnet/cc_attention/src/lib_cffi.cpp:3:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:115:1: warning: identifier ‘constexpr’ is a keyword in C++11 [-Wc++0x-compat]
 template <class T> inline constexpr T&& constexpr_forward(typename std::remove_reference<T>::t
 ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:115:1: warning: identifier ‘noexcept’ is a keyword in C++11 [-Wc++0x-compat]
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:122:5: warning: identifier ‘static_assert’ is a keyword in C++11 [-Wc++0x-compat]
     static_assert(!std::is_lvalue_reference<T>::value, "!!");
     ^
In file included from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Error.h:4:0,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Allocator.h:6,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/TH/THAllocator.h:6,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC/THCGeneral.h:5,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC/THC.h:4,
                 from /mapbar/acgtyrant/Projects/ccnet/cc_attention/src/lib_cffi.cpp:3:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:549:3: warning: identifier ‘nullptr’ is a keyword in C++11 [-Wc++0x-compat]
   constexpr optional() noexcept : ref(nullptr) {}
   ^
In file included from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Error.h:4:0,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Allocator.h:6,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/TH/THAllocator.h:6,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC/THCGeneral.h:5,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC/THC.h:4,
                 from /mapbar/acgtyrant/Projects/ccnet/cc_attention/src/lib_cffi.cpp:3:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:115:27: error: ‘constexpr’ does not name a type
 template <class T> inline constexpr T&& constexpr_forward(typename std::remove_reference<T>::t
                           ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:115:27: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:120:27: error: ‘constexpr’ does not name a type
 template <class T> inline constexpr T&& constexpr_forward(typename std::remove_reference<T>::t
                           ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:120:27: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:126:27: error: ‘constexpr’ does not name a type
 template <class T> inline constexpr typename std::remove_reference<T>::type&& constexpr_move(T
                           ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:126:27: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:147:3: error: ‘constexpr’ does not name a type
   constexpr static bool has_overload(...) { return false; }
   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:147:3: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:149:40: error: ‘declval’ is not a member of ‘std’
   template <class X, size_t S = sizeof(std::declval<X&>().operator&()) >
                                        ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:149:54: error: expected primary-expression before ‘&’ token
   template <class X, size_t S = sizeof(std::declval<X&>().operator&()) >
                                                      ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:149:55: error: expected primary-expression before ‘>’ token
   template <class X, size_t S = sizeof(std::declval<X&>().operator&()) >
                                                       ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:149:57: error: expected primary-expression before ‘)’ token
   template <class X, size_t S = sizeof(std::declval<X&>().operator&()) >
                                                         ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:150:3: error: ‘constexpr’ does not name a type
   constexpr static bool has_overload(bool) { return true; }
   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:150:3: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:152:3: error: ‘constexpr’ does not name a type
   constexpr static bool value = has_overload<T>(true);
   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:152:3: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:26:51: error: ‘enable_if’ in namespace ‘std’ does not name a template type
 # define TR2_OPTIONAL_REQUIRES(...) typename std::enable_if<__VA_ARGS__::value, bool>::type =
                                                   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:155:23: note: in expansion of macro ‘TR2_OPTIONAL_REQUIRES’
 template <typename T, TR2_OPTIONAL_REQUIRES(!has_overloaded_addressof<T>)>
                       ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:26:60: error: expected ‘>’ before ‘<’ token
 # define TR2_OPTIONAL_REQUIRES(...) typename std::enable_if<__VA_ARGS__::value, bool>::type =
                                                            ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:155:23: note: in expansion of macro ‘TR2_OPTIONAL_REQUIRES’
 template <typename T, TR2_OPTIONAL_REQUIRES(!has_overloaded_addressof<T>)>
                       ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:156:1: error: ‘constexpr’ does not name a type
 constexpr T* static_addressof(T& ref)
 ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:156:1: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:26:51: error: ‘enable_if’ in namespace ‘std’ does not name a template type
 # define TR2_OPTIONAL_REQUIRES(...) typename std::enable_if<__VA_ARGS__::value, bool>::type =
                                                   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:161:23: note: in expansion of macro ‘TR2_OPTIONAL_REQUIRES’
 template <typename T, TR2_OPTIONAL_REQUIRES(has_overloaded_addressof<T>)>
                       ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:26:60: error: expected ‘>’ before ‘<’ token
 # define TR2_OPTIONAL_REQUIRES(...) typename std::enable_if<__VA_ARGS__::value, bool>::type =
                                                            ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:161:23: note: in expansion of macro ‘TR2_OPTIONAL_REQUIRES’
 template <typename T, TR2_OPTIONAL_REQUIRES(has_overloaded_addressof<T>)>
                       ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h: In function ‘T* at::detail_::static_addressof(T&)’:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:164:10: error: ‘addressof’ is not a member of ‘std’
   return std::addressof(ref);
          ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h: At global scope:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:170:1: error: ‘constexpr’ does not name a type
 constexpr U convert(U v) { return v; }
 ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:170:1: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:175:1: error: ‘constexpr’ does not name a type
 constexpr struct trivial_init_t{} trivial_init{};
 ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:175:1: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:175:35: error: ‘trivial_init’ does not name a type
 constexpr struct trivial_init_t{} trivial_init{};
                                   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:179:1: error: ‘constexpr’ does not name a type
 constexpr struct in_place_t{} in_place{};
 ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:179:1: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:179:31: error: ‘in_place’ does not name a type
 constexpr struct in_place_t{} in_place{};
                               ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:186:3: error: ‘constexpr’ does not name a type
   constexpr explicit nullopt_t(init){}
   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:186:3: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:188:1: error: ‘constexpr’ does not name a type
 constexpr nullopt_t nullopt{nullopt_t::init()};
 ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:188:1: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h: In constructor ‘at::bad_optional_access::bad_optional_access(const string&)’:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:194:74: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
   explicit bad_optional_access(const std::string& what_arg) : logic_error{what_arg} {}
                                                                          ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h: In constructor ‘at::bad_optional_access::bad_optional_access(const char*)’:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:195:67: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
   explicit bad_optional_access(const char* what_arg) : logic_error{what_arg} {}
                                                                   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h: At global scope:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:205:3: error: ‘constexpr’ does not name a type
   constexpr storage_t( trivial_init_t ) noexcept : dummy_() {};
   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:205:3: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:207:18: warning: variadic templates only available with -std=c++11 or -std=gnu++11
   template <class... Args>
                  ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:208:3: error: ‘constexpr’ does not name a type
   constexpr storage_t( Args&&... args ) : value_(constexpr_forward<Args>(args)...) {}
   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:208:3: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:220:5: error: ‘constexpr’ does not name a type
     constexpr constexpr_storage_t( trivial_init_t ) noexcept : dummy_() {};
     ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:220:5: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:222:20: warning: variadic templates only available with -std=c++11 or -std=gnu++11
     template <class... Args>
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:223:5: error: ‘constexpr’ does not name a type
     constexpr constexpr_storage_t( Args&&... args ) : value_(constexpr_forward<Args>(args)...)
     ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:223:5: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:225:30: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11
     ~constexpr_storage_t() = default;
                              ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:235:5: error: ‘constexpr’ does not name a type
     constexpr optional_base() noexcept : init_(false), storage_(trivial_init) {};
     ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:235:5: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:237:14: error: ‘constexpr’ does not name a type
     explicit constexpr optional_base(const T& v) : init_(true), storage_(v) {}
              ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:237:14: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:239:14: error: ‘constexpr’ does not name a type
     explicit constexpr optional_base(T&& v) : init_(true), storage_(constexpr_move(v)) {}
              ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:239:14: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:241:20: warning: variadic templates only available with -std=c++11 or -std=gnu++11
     template <class... Args> explicit optional_base(in_place_t, Args&&... args)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:241:63: error: expected ‘)’ before ‘,’ token
     template <class... Args> explicit optional_base(in_place_t, Args&&... args)
                                                               ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:244:29: warning: variadic templates only available with -std=c++11 or -std=gnu++11
     template <class U, class... Args, TR2_OPTIONAL_REQUIRES(std::is_constructible<T, std::init
                             ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:26:51: error: ‘enable_if’ in namespace ‘std’ does not name a template type
 # define TR2_OPTIONAL_REQUIRES(...) typename std::enable_if<__VA_ARGS__::value, bool>::type =
                                                   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:244:39: note: in expansion of macro ‘TR2_OPTIONAL_REQUIRES’
     template <class U, class... Args, TR2_OPTIONAL_REQUIRES(std::is_constructible<T, std::init
                                       ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:26:60: error: expected ‘>’ before ‘<’ token
 # define TR2_OPTIONAL_REQUIRES(...) typename std::enable_if<__VA_ARGS__::value, bool>::type =
                                                            ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:244:39: note: in expansion of macro ‘TR2_OPTIONAL_REQUIRES’
     template <class U, class... Args, TR2_OPTIONAL_REQUIRES(std::is_constructible<T, std::init
                                       ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:246:66: error: expected unqualified-id before ‘{’ token
         : init_(true), storage_(il, std::forward<Args>(args)...) {}
                                                                  ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:258:5: error: ‘constexpr’ does not name a type
     constexpr constexpr_optional_base() noexcept : init_(false), storage_(trivial_init) {};
     ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:258:5: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:260:14: error: ‘constexpr’ does not name a type
     explicit constexpr constexpr_optional_base(const T& v) : init_(true), storage_(v) {}
              ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:260:14: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:262:14: error: ‘constexpr’ does not name a type
     explicit constexpr constexpr_optional_base(T&& v) : init_(true), storage_(constexpr_move(v
              ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:262:14: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:264:20: warning: variadic templates only available with -std=c++11 or -std=gnu++11
     template <class... Args> explicit constexpr constexpr_optional_base(in_place_t, Args&&...
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:264:39: error: ‘constexpr’ does not name a type
     template <class... Args> explicit constexpr constexpr_optional_base(in_place_t, Args&&...
                                       ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:264:39: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:267:29: warning: variadic templates only available with -std=c++11 or -std=gnu++11
     template <class U, class... Args, TR2_OPTIONAL_REQUIRES(std::is_constructible<T, std::init
                             ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:26:51: error: ‘enable_if’ in namespace ‘std’ does not name a template type
 # define TR2_OPTIONAL_REQUIRES(...) typename std::enable_if<__VA_ARGS__::value, bool>::type =
                                                   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:267:39: note: in expansion of macro ‘TR2_OPTIONAL_REQUIRES’
     template <class U, class... Args, TR2_OPTIONAL_REQUIRES(std::is_constructible<T, std::init
                                       ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:26:60: error: expected ‘>’ before ‘<’ token
 # define TR2_OPTIONAL_REQUIRES(...) typename std::enable_if<__VA_ARGS__::value, bool>::type =
                                                            ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:267:39: note: in expansion of macro ‘TR2_OPTIONAL_REQUIRES’
     template <class U, class... Args, TR2_OPTIONAL_REQUIRES(std::is_constructible<T, std::init
                                       ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:269:64: error: expected unqualified-id before ‘{’ token
       : init_(true), storage_(il, std::forward<Args>(args)...) {}
                                                                ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:271:34: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11
     ~constexpr_optional_base() = default;
                                  ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:275:1: error: expected unqualified-id before ‘using’
 using OptionalBase = typename std::conditional<
 ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:284:38: error: expected template-name before ‘<’ token
 class optional : private OptionalBase<T>
                                      ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:284:38: error: expected ‘{’ before ‘<’ token
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:284:38: error: expected unqualified-id before ‘<’ token
In file included from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Error.h:4:0,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Allocator.h:6,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/TH/THAllocator.h:6,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC/THCGeneral.h:5,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC/THC.h:4,
                 from /mapbar/acgtyrant/Projects/ccnet/cc_attention/src/lib_cffi.cpp:3:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:542:18: error: expected identifier before ‘!’ token
   static_assert( !std::is_same<T, nullopt_t>::value, "bad T" );
                  ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:542:18: error: expected ‘,’ or ‘...’ before ‘!’ token
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:542:62: error: ISO C++ forbids declaration of ‘static_assert’ with no type [-fpermissive]
   static_assert( !std::is_same<T, nullopt_t>::value, "bad T" );
                                                              ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:543:18: error: expected identifier before ‘!’ token
   static_assert( !std::is_same<T, in_place_t>::value, "bad T" );
                  ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:543:18: error: expected ‘,’ or ‘...’ before ‘!’ token
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:543:63: error: ISO C++ forbids declaration of ‘static_assert’ with no type [-fpermissive]
   static_assert( !std::is_same<T, in_place_t>::value, "bad T" );
                                                               ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:543:3: error: ‘int at::optional<T&>::static_assert(int)’ cannot be overloaded
   static_assert( !std::is_same<T, in_place_t>::value, "bad T" );
   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:542:3: error: with ‘int at::optional<T&>::static_assert(int)’
   static_assert( !std::is_same<T, nullopt_t>::value, "bad T" );
   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:549:3: error: ‘constexpr’ does not name a type
   constexpr optional() noexcept : ref(nullptr) {}
   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:549:3: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:551:3: error: ‘constexpr’ does not name a type
   constexpr optional(nullopt_t) noexcept : ref(nullptr) {}
   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:551:3: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:553:3: error: ‘constexpr’ does not name a type
   constexpr optional(T& v) noexcept : ref(detail_::static_addressof(v)) {}
   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:553:3: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:555:13: error: expected ‘,’ or ‘...’ before ‘&&’ token
   optional(T&&) = delete;
             ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:555:19: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11
   optional(T&&) = delete;
                   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:557:3: error: ‘constexpr’ does not name a type
   constexpr optional(const optional& rhs) noexcept : ref(rhs.ref) {}
   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:557:3: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:559:12: error: ‘constexpr’ does not name a type
   explicit constexpr optional(in_place_t, T& v) noexcept : ref(detail_::static_addressof(v)) {
            ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:559:12: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:561:31: error: expected ‘)’ before ‘,’ token
   explicit optional(in_place_t, T&&) = delete;
                               ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:563:17: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11
   ~optional() = default;
                 ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:566:32: error: expected ‘;’ at end of member declaration
   optional& operator=(nullopt_t) noexcept {
                                ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:566:34: error: ‘noexcept’ does not name a type
   optional& operator=(nullopt_t) noexcept {
                                  ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:566:34: note: C++11 ‘noexcept’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:582:3: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
   auto operator=(U&& rhs) noexcept
   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:582:19: error: expected ‘,’ or ‘...’ before ‘&&’ token
   auto operator=(U&& rhs) noexcept
                   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:582:27: error: expected initializer before ‘noexcept’
   auto operator=(U&& rhs) noexcept
                           ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:594:3: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
   auto operator=(U&& rhs) noexcept
   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:594:19: error: expected ‘,’ or ‘...’ before ‘&&’ token
   auto operator=(U&& rhs) noexcept
                   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:594:27: error: expected initializer before ‘noexcept’
   auto operator=(U&& rhs) noexcept
                           ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:602:20: error: expected ‘;’ at end of member declaration
   void emplace(T& v) noexcept {
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:602:22: error: ‘noexcept’ does not name a type
   void emplace(T& v) noexcept {
                      ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:602:22: note: C++11 ‘noexcept’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:606:17: error: expected ‘,’ or ‘...’ before ‘&&’ token
   void emplace(T&&) = delete;
                 ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:606:23: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11
   void emplace(T&&) = delete;
                       ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:609:30: error: expected ‘;’ at end of member declaration
   void swap(optional<T&>& rhs) noexcept
                              ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:609:32: error: ‘noexcept’ does not name a type
   void swap(optional<T&>& rhs) noexcept
                                ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:609:32: note: C++11 ‘noexcept’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:615:3: error: ‘constexpr’ does not name a type
   constexpr T* operator->() const {
   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:615:3: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:619:3: error: ‘constexpr’ does not name a type
   constexpr T& operator*() const {
   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:619:3: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:623:3: error: ‘constexpr’ does not name a type
   constexpr T& value() const {
   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:623:3: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:627:12: error: ‘constexpr’ does not name a type
   explicit constexpr operator bool() const noexcept {
            ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:627:12: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:631:3: error: ‘constexpr’ does not name a type
   constexpr bool has_value() const noexcept {
   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:631:3: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:636:3: error: ‘constexpr’ does not name a type
   constexpr typename std::decay<T>::type value_or(V&& v) const
   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:636:3: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:642:14: error: expected ‘;’ at end of member declaration
   void reset() noexcept { ref = nullptr; }
              ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:642:16: error: ‘noexcept’ does not name a type
   void reset() noexcept { ref = nullptr; }
                ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:642:16: note: C++11 ‘noexcept’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:647:19: error: template argument 1 is invalid
 class optional<T&&>
                   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:654:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator==(const optional<T>& x, const optional<T>& y)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:654:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:659:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator!=(const optional<T>& x, const optional<T>& y)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:659:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:664:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator<(const optional<T>& x, const optional<T>& y)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:664:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:669:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator>(const optional<T>& x, const optional<T>& y)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:669:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:674:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator<=(const optional<T>& x, const optional<T>& y)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:674:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:679:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator>=(const optional<T>& x, const optional<T>& y)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:679:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:686:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator==(const optional<T>& x, nullopt_t) noexcept
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:686:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:691:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator==(nullopt_t, const optional<T>& x) noexcept
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:691:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:696:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator!=(const optional<T>& x, nullopt_t) noexcept
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:696:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:701:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator!=(nullopt_t, const optional<T>& x) noexcept
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:701:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:706:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator<(const optional<T>&, nullopt_t) noexcept
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:706:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:711:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator<(nullopt_t, const optional<T>& x) noexcept
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:711:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:716:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator<=(const optional<T>& x, nullopt_t) noexcept
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:716:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:721:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator<=(nullopt_t, const optional<T>&) noexcept
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:721:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:726:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator>(const optional<T>& x, nullopt_t) noexcept
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:726:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:731:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator>(nullopt_t, const optional<T>&) noexcept
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:731:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:736:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator>=(const optional<T>&, nullopt_t) noexcept
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:736:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:741:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator>=(nullopt_t, const optional<T>& x) noexcept
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:741:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:749:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator==(const optional<T>& x, const T& v)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:749:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:754:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator==(const T& v, const optional<T>& x)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:754:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:759:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator!=(const optional<T>& x, const T& v)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:759:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:764:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator!=(const T& v, const optional<T>& x)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:764:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:769:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator<(const optional<T>& x, const T& v)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:769:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:774:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator>(const T& v, const optional<T>& x)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:774:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:779:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator>(const optional<T>& x, const T& v)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:779:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:784:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator<(const T& v, const optional<T>& x)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:784:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:789:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator>=(const optional<T>& x, const T& v)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:789:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:794:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator<=(const T& v, const optional<T>& x)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:794:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:799:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator<=(const optional<T>& x, const T& v)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:799:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:804:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator>=(const T& v, const optional<T>& x)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:804:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:811:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator==(const optional<T&>& x, const T& v)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:811:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:816:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator==(const T& v, const optional<T&>& x)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:816:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:821:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator!=(const optional<T&>& x, const T& v)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:821:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:826:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator!=(const T& v, const optional<T&>& x)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:826:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:831:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator<(const optional<T&>& x, const T& v)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:831:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:836:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator>(const T& v, const optional<T&>& x)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:836:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:841:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator>(const optional<T&>& x, const T& v)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:841:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:846:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator<(const T& v, const optional<T&>& x)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:846:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:851:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator>=(const optional<T&>& x, const T& v)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:851:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:856:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator<=(const T& v, const optional<T&>& x)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:856:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:861:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator<=(const optional<T&>& x, const T& v)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:861:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:866:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator>=(const T& v, const optional<T&>& x)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:866:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:872:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator==(const optional<const T&>& x, const T& v)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:872:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:877:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator==(const T& v, const optional<const T&>& x)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:877:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:882:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator!=(const optional<const T&>& x, const T& v)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:882:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:887:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator!=(const T& v, const optional<const T&>& x)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:887:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:892:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator<(const optional<const T&>& x, const T& v)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:892:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:897:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator>(const T& v, const optional<const T&>& x)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:897:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:902:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator>(const optional<const T&>& x, const T& v)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:902:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:907:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator<(const T& v, const optional<const T&>& x)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:907:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:912:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator>=(const optional<const T&>& x, const T& v)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:912:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:917:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator<=(const T& v, const optional<const T&>& x)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:917:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:922:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator<=(const optional<const T&>& x, const T& v)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:922:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:927:20: error: ‘constexpr’ does not name a type
 template <class T> constexpr bool operator>=(const T& v, const optional<const T&>& x)
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:927:20: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:935:43: error: expected initializer before ‘noexcept’
 void swap(optional<T>& x, optional<T>& y) noexcept(noexcept(x.swap(y)))
                                           ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:942:1: error: ‘constexpr’ does not name a type
 constexpr optional<typename std::decay<T>::type> make_optional(T&& v)
 ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:942:1: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:948:1: error: ‘constexpr’ does not name a type
 constexpr optional<X&> make_optional(std::reference_wrapper<X> v)
 ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:948:1: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:959:10: error: ‘hash’ is not a class template
   struct hash<at::optional<T>>
          ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:959:29: error: ‘>>’ should be ‘> >’ within a nested template argument list
   struct hash<at::optional<T>>
                             ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:964:5: error: ‘constexpr’ does not name a type
     constexpr result_type operator()(argument_type const& arg) const {
     ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:964:5: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:970:30: error: ‘>>’ should be ‘> >’ within a nested template argument list
   struct hash<at::optional<T&>>
                              ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:975:5: error: ‘constexpr’ does not name a type
     constexpr result_type operator()(argument_type const& arg) const {
     ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/optional.h:975:5: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
In file included from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Allocator.h:6:0,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/TH/THAllocator.h:6,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC/THCGeneral.h:5,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC/THC.h:4,
                 from /mapbar/acgtyrant/Projects/ccnet/cc_attention/src/lib_cffi.cpp:3:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Error.h:28:31: warning: variadic templates only available with -std=c++11 or -std=gnu++11
 template <typename T, typename... Args>
                               ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Error.h:30:51: warning: variadic templates only available with -std=c++11 or -std=gnu++11
 _str(std::ostream& ss, const T& t, const Args&... args) {
                                                   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Error.h:37:19: warning: variadic templates only available with -std=c++11 or -std=gnu++11
 template <typename... Args>
                   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Error.h:38:39: warning: variadic templates only available with -std=c++11 or -std=gnu++11
 inline std::string str(const Args&... args) {
                                       ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Error.h:77:22: error: expected ‘;’ at end of member declaration
   const char* what() const noexcept override {
                      ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Error.h:77:28: error: ‘noexcept’ does not name a type
   const char* what() const noexcept override {
                            ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Error.h:77:28: note: C++11 ‘noexcept’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Error.h:82:40: error: expected ‘;’ at end of member declaration
   const char* what_without_backtrace() const noexcept {
                                        ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Error.h:82:46: error: ‘noexcept’ does not name a type
   const char* what_without_backtrace() const noexcept {
                                              ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Error.h:82:46: note: C++11 ‘noexcept’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Error.h:77:15: error: looser throw specifier for ‘virtual const char* at::Error::what() const’
   const char* what() const noexcept override {
               ^
In file included from /usr/include/c++/5/new:40:0,
                 from /usr/include/c++/5/ext/new_allocator.h:33,
                 from /usr/include/x86_64-linux-gnu/c++/5/bits/c++allocator.h:33,
                 from /usr/include/c++/5/bits/allocator.h:46,
                 from /usr/include/c++/5/memory:63,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Allocator.h:3,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/TH/THAllocator.h:6,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC/THCGeneral.h:5,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC/THC.h:4,
                 from /mapbar/acgtyrant/Projects/ccnet/cc_attention/src/lib_cffi.cpp:3:
/usr/include/c++/5/exception:68:25: error:   overriding ‘virtual const char* std::exception::what() const throw ()’
     virtual const char* what() const _GLIBCXX_USE_NOEXCEPT;
                         ^
In file included from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Allocator.h:6:0,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/TH/THAllocator.h:6,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC/THCGeneral.h:5,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC/THC.h:4,
                 from /mapbar/acgtyrant/Projects/ccnet/cc_attention/src/lib_cffi.cpp:3:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Error.h:69:14: error: looser throw specifier for ‘virtual at::Error::~Error()’
 class AT_API Error : public std::exception {
              ^
In file included from /usr/include/c++/5/new:40:0,
                 from /usr/include/c++/5/ext/new_allocator.h:33,
                 from /usr/include/x86_64-linux-gnu/c++/5/bits/c++allocator.h:33,
                 from /usr/include/c++/5/bits/allocator.h:46,
                 from /usr/include/c++/5/memory:63,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Allocator.h:3,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/TH/THAllocator.h:6,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC/THCGeneral.h:5,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC/THC.h:4,
                 from /mapbar/acgtyrant/Projects/ccnet/cc_attention/src/lib_cffi.cpp:3:
/usr/include/c++/5/exception:64:13: error:   overriding ‘virtual std::exception::~exception() throw ()’
     virtual ~exception() _GLIBCXX_USE_NOEXCEPT;
             ^
In file included from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Allocator.h:6:0,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/TH/THAllocator.h:6,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC/THCGeneral.h:5,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC/THC.h:4,
                 from /mapbar/acgtyrant/Projects/ccnet/cc_attention/src/lib_cffi.cpp:3:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Error.h:88:9: error: expected nested-name-specifier before ‘handler_t’
   using handler_t = void(*)(const SourceLocation& source_location, const char* msg);
         ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Error.h:97:35: error: ‘handler_t’ has not been declared
   static void set_warning_handler(handler_t handler);
                                   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Error.h:103:10: error: ‘handler_t’ does not name a type
   static handler_t warning_handler_;
          ^
In file included from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Allocator.h:7:0,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/TH/THAllocator.h:6,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC/THCGeneral.h:5,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC/THC.h:4,
                 from /mapbar/acgtyrant/Projects/ccnet/cc_attention/src/lib_cffi.cpp:3:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Retainable.h:54:8: error: ‘atomic’ in namespace ‘std’ does not name a template type
   std::atomic<uint32_t> refcount;
        ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Retainable.h:55:8: error: ‘atomic’ in namespace ‘std’ does not name a template type
   std::atomic<uint32_t> weak_refcount;
        ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Retainable.h: In constructor ‘at::Retainable::Retainable()’:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Retainable.h:10:17: error: class ‘at::Retainable’ does not have any field named ‘refcount’
   Retainable(): refcount(1), weak_refcount(1) {}
                 ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Retainable.h:10:30: error: class ‘at::Retainable’ does not have any field named ‘weak_refcount’
   Retainable(): refcount(1), weak_refcount(1) {}
                              ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Retainable.h: In member function ‘void at::Retainable::retain()’:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Retainable.h:12:7: error: ‘refcount’ was not declared in this scope
     ++refcount;
       ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Retainable.h: In member function ‘void at::Retainable::release()’:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Retainable.h:15:10: error: ‘refcount’ was not declared in this scope
     if(--refcount == 0) {
          ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Retainable.h:18:11: error: ‘weak_refcount’ was not declared in this scope
       if (weak_refcount == 1) {
           ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Retainable.h: In member function ‘void at::Retainable::weak_retain()’:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Retainable.h:27:7: error: ‘weak_refcount’ was not declared in this scope
     ++weak_refcount;
       ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Retainable.h: In member function ‘void at::Retainable::weak_release()’:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Retainable.h:30:11: error: ‘weak_refcount’ was not declared in this scope
     if (--weak_refcount == 0) {
           ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Retainable.h: In member function ‘bool at::Retainable::weak_lock()’:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Retainable.h:36:7: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
       auto current_refcount = refcount.load();
       ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Retainable.h:36:12: error: ‘current_refcount’ does not name a type
       auto current_refcount = refcount.load();
            ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Retainable.h:37:11: error: ‘current_refcount’ was not declared in this scope
       if (current_refcount == 0) return false;
           ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Retainable.h:38:11: error: ‘refcount’ was not declared in this scope
       if (refcount.compare_exchange_strong(current_refcount, current_refcount + 1)) break;
           ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Retainable.h:38:44: error: ‘current_refcount’ was not declared in this scope
       if (refcount.compare_exchange_strong(current_refcount, current_refcount + 1)) break;
                                            ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Retainable.h: In member function ‘uint32_t at::Retainable::use_count() const’:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Retainable.h:43:12: error: ‘refcount’ was not declared in this scope
     return refcount.load();
            ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Retainable.h: In member function ‘uint32_t at::Retainable::weak_use_count() const’:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Retainable.h:46:12: error: ‘weak_refcount’ was not declared in this scope
     return weak_refcount.load();
            ^
In file included from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:23:0,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/ArrayRef.h:19,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/ScalarType.h:5,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Device.h:4,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Allocator.h:8,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/TH/THAllocator.h:6,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC/THCGeneral.h:5,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC/THC.h:4,
                 from /mapbar/acgtyrant/Projects/ccnet/cc_attention/src/lib_cffi.cpp:3:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/AlignOf.h: At global scope:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/AlignOf.h:38:11: error: ‘Alignment’ is not a type
   alignas(Alignment) char buffer[Size];
           ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/AlignOf.h:38:20: error: ISO C++ forbids declaration of ‘alignas’ with no type [-fpermissive]
   alignas(Alignment) char buffer[Size];
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/AlignOf.h:38:20: error: expected ‘;’ at end of member declaration
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/AlignOf.h:114:19: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11
   AlignerImpl() = delete;
                   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/AlignOf.h:141:59: error: a function call cannot appear in a constant-expression
                                       T6, T7, T8, T9, T10>),
                                                           ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/AlignOf.h:143:59: error: template argument 1 is invalid
                                      T6, T7, T8, T9, T10>)> {
                                                           ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/AlignOf.h:143:59: error: template argument 2 is invalid
In file included from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/ArrayRef.h:19:0,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/ScalarType.h:5,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Device.h:4,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Allocator.h:8,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/TH/THAllocator.h:6,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC/THCGeneral.h:5,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC/THC.h:4,
                 from /mapbar/acgtyrant/Projects/ccnet/cc_attention/src/lib_cffi.cpp:3:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:99:9: error: expected nested-name-specifier before ‘U’
   using U = AlignedCharArrayUnion<T>;
         ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:100:3: error: ‘U’ does not name a type
   U FirstEl;
   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:124:9: error: expected nested-name-specifier before ‘size_type’
   using size_type = size_t;
         ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:125:9: error: expected nested-name-specifier before ‘difference_type’
   using difference_type = ptrdiff_t;
         ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:126:9: error: expected nested-name-specifier before ‘value_type’
   using value_type = T;
         ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:127:9: error: expected nested-name-specifier before ‘iterator’
   using iterator = T *;
         ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:128:9: error: expected nested-name-specifier before ‘const_iterator’
   using const_iterator = const T *;
         ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:130:9: error: expected nested-name-specifier before ‘const_reverse_iterator’
   using const_reverse_iterator = std::reverse_iterator<const_iterator>;
         ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:131:9: error: expected nested-name-specifier before ‘reverse_iterator’
   using reverse_iterator = std::reverse_iterator<iterator>;
         ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:133:9: error: expected nested-name-specifier before ‘reference’
   using reference = T &;
         ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:134:9: error: expected nested-name-specifier before ‘const_reference’
   using const_reference = const T &;
         ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:135:9: error: expected nested-name-specifier before ‘pointer’
   using pointer = T *;
         ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:136:9: error: expected nested-name-specifier before ‘const_pointer’
   using const_pointer = const T *;
         ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:139:3: error: ‘iterator’ does not name a type
   iterator begin() { return (iterator)this->BeginX; }
   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:140:3: error: ‘const_iterator’ does not name a type
   const_iterator begin() const { return (const_iterator)this->BeginX; }
   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:141:3: error: ‘iterator’ does not name a type
   iterator end() { return (iterator)this->EndX; }
   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:142:3: error: ‘const_iterator’ does not name a type
   const_iterator end() const { return (const_iterator)this->EndX; }
   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:145:3: error: ‘iterator’ does not name a type
   iterator capacity_ptr() { return (iterator)this->CapacityX; }
   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:146:3: error: ‘const_iterator’ does not name a type
   const_iterator capacity_ptr() const { return (const_iterator)this->CapacityX;}
   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:150:3: error: ‘reverse_iterator’ does not name a type
   reverse_iterator rbegin()            { return reverse_iterator(end()); }
   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:151:3: error: ‘const_reverse_iterator’ does not name a type
   const_reverse_iterator rbegin() const{ return const_reverse_iterator(end()); }
   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:152:3: error: ‘reverse_iterator’ does not name a type
   reverse_iterator rend()              { return reverse_iterator(begin()); }
   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:153:3: error: ‘const_reverse_iterator’ does not name a type
   const_reverse_iterator rend() const { return const_reverse_iterator(begin());}
   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:155:3: error: ‘size_type’ does not name a type
   size_type size() const { return end()-begin(); }
   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:156:3: error: ‘size_type’ does not name a type
   size_type max_size() const { return size_type(-1) / sizeof(T); }
   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:162:3: error: ‘pointer’ does not name a type
   pointer data() { return pointer(begin()); }
   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:164:3: error: ‘const_pointer’ does not name a type
   const_pointer data() const { return const_pointer(begin()); }
   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:166:3: error: ‘reference’ does not name a type
   reference operator[](size_type idx) {
   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:170:3: error: ‘const_reference’ does not name a type
   const_reference operator[](size_type idx) const {
   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:175:3: error: ‘reference’ does not name a type
   reference front() {
   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:179:3: error: ‘const_reference’ does not name a type
   const_reference front() const {
   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:184:3: error: ‘reference’ does not name a type
   reference back() {
   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:188:3: error: ‘const_reference’ does not name a type
   const_reference back() const {
   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h: In constructor ‘at::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::SmallVectorTemplateCommon(size_t)’:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:104:61: error: ‘FirstEl’ was not declared in this scope
   SmallVectorTemplateCommon(size_t Size) : SmallVectorBase(&FirstEl, Size) {}
                                                             ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h: In member function ‘void at::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::grow_pod(size_t, size_t)’:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:107:32: error: ‘FirstEl’ was not declared in this scope
     SmallVectorBase::grow_pod(&FirstEl, MinSizeInBytes, TSize);
                                ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h: In member function ‘bool at::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::isSmall() const’:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:113:48: error: ‘FirstEl’ was not declared in this scope
     return BeginX == static_cast<const void*>(&FirstEl);
                                                ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h: In member function ‘void at::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::resetToSmall()’:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:118:34: error: ‘FirstEl’ was not declared in this scope
     BeginX = EndX = CapacityX = &FirstEl;
                                  ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h: In member function ‘size_t at::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::capacity() const’:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:159:49: error: there are no arguments to ‘capacity_ptr’ that depend on a template parameter, so a declaration of ‘capacity_ptr’ must be available [-fpermissive]
   size_t capacity() const { return capacity_ptr() - begin(); }
                                                 ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:159:49: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:159:59: error: there are no arguments to ‘begin’ that depend on a template parameter, so a declaration of ‘begin’ must be available [-fpermissive]
   size_t capacity() const { return capacity_ptr() - begin(); }
                                                           ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h: At global scope:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:236:20: error: expected ‘,’ or ‘...’ before ‘&&’ token
   void push_back(T &&Elt) {
                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h: In static member function ‘static void at::SmallVectorTemplateBase<T, isPodLike>::uninitialized_move(It1, It1, It2)’:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:212:29: error: ‘make_move_iterator’ is not a member of ‘std’
     std::uninitialized_copy(std::make_move_iterator(I),
                             ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:213:29: error: ‘make_move_iterator’ is not a member of ‘std’
                             std::make_move_iterator(E), Dest);
                             ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h: In member function ‘void at::SmallVectorTemplateBase<T, isPodLike>::push_back(T)’:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:239:35: error: ‘move’ is not a member of ‘std’
     ::new ((void*) this->end()) T(::std::move(Elt));
                                   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:239:47: error: ‘Elt’ was not declared in this scope
     ::new ((void*) this->end()) T(::std::move(Elt));
                                               ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h: In member function ‘void at::SmallVectorTemplateBase<T, isPodLike>::grow(size_t)’:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:259:18: error: ‘nullptr’ was not declared in this scope
   if (NewElts == nullptr)
                  ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h: At global scope:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:309:21: error: ‘enable_if’ in namespace ‘std’ does not name a template type
       typename std::enable_if<std::is_same<typename std::remove_const<T1>::type,
                     ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:309:30: error: expected ‘,’ or ‘...’ before ‘<’ token
       typename std::enable_if<std::is_same<typename std::remove_const<T1>::type,
                              ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:41:37: error: ‘is_trivially_copyable’ is not a member of ‘std’
 #define AT_IS_TRIVIALLY_COPYABLE(T) std::is_trivially_copyable<T>::value
                                     ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:341:59: note: in expansion of macro ‘AT_IS_TRIVIALLY_COPYABLE’
 class SmallVectorImpl : public SmallVectorTemplateBase<T, AT_IS_TRIVIALLY_COPYABLE(T)> {
                                                           ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:41:37: error: ‘is_trivially_copyable’ is not a member of ‘std’
 #define AT_IS_TRIVIALLY_COPYABLE(T) std::is_trivially_copyable<T>::value
                                     ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:341:59: note: in expansion of macro ‘AT_IS_TRIVIALLY_COPYABLE’
 class SmallVectorImpl : public SmallVectorTemplateBase<T, AT_IS_TRIVIALLY_COPYABLE(T)> {
                                                           ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:41:65: error: template argument 2 is invalid
 #define AT_IS_TRIVIALLY_COPYABLE(T) std::is_trivially_copyable<T>::value
                                                                 ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:341:59: note: in expansion of macro ‘AT_IS_TRIVIALLY_COPYABLE’
 class SmallVectorImpl : public SmallVectorTemplateBase<T, AT_IS_TRIVIALLY_COPYABLE(T)> {
                                                           ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:41:66: error: expected ‘{’ before ‘::’ token
 #define AT_IS_TRIVIALLY_COPYABLE(T) std::is_trivially_copyable<T>::value
                                                                  ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:341:59: note: in expansion of macro ‘AT_IS_TRIVIALLY_COPYABLE’
 class SmallVectorImpl : public SmallVectorTemplateBase<T, AT_IS_TRIVIALLY_COPYABLE(T)> {
                                                           ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:341:86: error: expected initializer before ‘>’ token
 class SmallVectorImpl : public SmallVectorTemplateBase<T, AT_IS_TRIVIALLY_COPYABLE(T)> {
                                                                                      ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:714:54: error: invalid use of incomplete type ‘class at::SmallVectorImpl<T>’
 void SmallVectorImpl<T>::swap(SmallVectorImpl<T> &RHS) {
                                                      ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:341:7: note: declaration of ‘class at::SmallVectorImpl<T>’
 class SmallVectorImpl : public SmallVectorTemplateBase<T, AT_IS_TRIVIALLY_COPYABLE(T)> {
       ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:753:42: error: invalid use of incomplete type ‘class at::SmallVectorImpl<T>’
   operator=(const SmallVectorImpl<T> &RHS) {
                                          ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:341:7: note: declaration of ‘class at::SmallVectorImpl<T>’
 class SmallVectorImpl : public SmallVectorTemplateBase<T, AT_IS_TRIVIALLY_COPYABLE(T)> {
       ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:801:70: error: expected ‘,’ or ‘...’ before ‘&&’ token
 SmallVectorImpl<T> &SmallVectorImpl<T>::operator=(SmallVectorImpl<T> &&RHS) {
                                                                      ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:801:75: error: invalid use of incomplete type ‘class at::SmallVectorImpl<T>’
 SmallVectorImpl<T> &SmallVectorImpl<T>::operator=(SmallVectorImpl<T> &&RHS) {
                                                                           ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:341:7: note: declaration of ‘class at::SmallVectorImpl<T>’
 class SmallVectorImpl : public SmallVectorTemplateBase<T, AT_IS_TRIVIALLY_COPYABLE(T)> {
       ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:895:38: error: ‘enable_if’ in namespace ‘std’ does not name a template type
             typename = typename std::enable_if<std::is_convertible<
                                      ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:895:47: error: expected ‘>’ before ‘<’ token
             typename = typename std::enable_if<std::is_convertible<
                                               ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:898:29: error: default template arguments may not be used in function templates without -std=c++11 or -std=gnu++11
   SmallVector(ItTy S, ItTy E) : SmallVectorImpl<T>(N) {
                             ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:903:34: error: expected ‘,’ or ‘...’ before ‘&&’ token
   explicit SmallVector(Container &&c) : SmallVectorImpl<T>(N) {
                                  ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:907:36: error: expected ‘)’ before ‘<’ token
   SmallVector(std::initializer_list<T> IL) : SmallVectorImpl<T>(N) {
                                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:921:27: error: expected ‘,’ or ‘...’ before ‘&&’ token
   SmallVector(SmallVector &&RHS) : SmallVectorImpl<T>(N) {
                           ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:921:32: error: invalid constructor; you probably meant ‘at::SmallVector<T, N> (const at::SmallVector<T, N>&)’
   SmallVector(SmallVector &&RHS) : SmallVectorImpl<T>(N) {
                                ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:932:34: error: expected ‘,’ or ‘...’ before ‘&&’ token
   SmallVector(SmallVectorImpl<T> &&RHS) : SmallVectorImpl<T>(N) {
                                  ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:937:44: error: expected ‘,’ or ‘...’ before ‘&&’ token
   const SmallVector &operator=(SmallVector &&RHS) {
                                            ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:942:51: error: expected ‘,’ or ‘...’ before ‘&&’ token
   const SmallVector &operator=(SmallVectorImpl<T> &&RHS) {
                                                   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:947:37: error: declaration of ‘operator=’ as non-function
   const SmallVector &operator=(std::initializer_list<T> IL) {
                                     ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:947:30: error: expected ‘;’ at end of member declaration
   const SmallVector &operator=(std::initializer_list<T> IL) {
                              ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:947:53: error: expected ‘)’ before ‘<’ token
   const SmallVector &operator=(std::initializer_list<T> IL) {
                                                     ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h: In constructor ‘at::SmallVector<T, N>::SmallVector(Container)’:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:904:18: error: ‘c’ was not declared in this scope
     this->append(c.begin(), c.end());
                  ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h: In constructor ‘at::SmallVector<T, N>::SmallVector(at::SmallVectorImpl<T>)’:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:933:10: error: ‘RHS’ was not declared in this scope
     if (!RHS.empty())
          ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:934:37: error: ‘move’ is not a member of ‘std’
       SmallVectorImpl<T>::operator=(::std::move(RHS));
                                     ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h: In member function ‘const at::SmallVector<T, N>& at::SmallVector<T, N>::operator=(at::SmallVector<T, N>)’:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:938:35: error: ‘move’ is not a member of ‘std’
     SmallVectorImpl<T>::operator=(::std::move(RHS));
                                   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:938:47: error: ‘RHS’ was not declared in this scope
     SmallVectorImpl<T>::operator=(::std::move(RHS));
                                               ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h: In member function ‘const at::SmallVector<T, N>& at::SmallVector<T, N>::operator=(at::SmallVectorImpl<T>)’:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:943:35: error: ‘move’ is not a member of ‘std’
     SmallVectorImpl<T>::operator=(::std::move(RHS));
                                   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/SmallVector.h:943:47: error: ‘RHS’ was not declared in this scope
     SmallVectorImpl<T>::operator=(::std::move(RHS));
                                               ^
In file included from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/ScalarType.h:5:0,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Device.h:4,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Allocator.h:8,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/TH/THAllocator.h:6,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC/THCGeneral.h:5,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC/THC.h:4,
                 from /mapbar/acgtyrant/Projects/ccnet/cc_attention/src/lib_cffi.cpp:3:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/ArrayRef.h: At global scope:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/ArrayRef.h:87:18: error: ‘constexpr’ does not name a type
     /*implicit*/ constexpr ArrayRef(const std::array<T, N> &Arr)
                  ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/ArrayRef.h:87:18: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/ArrayRef.h:92:18: error: ‘constexpr’ does not name a type
     /*implicit*/ constexpr ArrayRef(const T (&Arr)[N]) : Data(Arr), Length(N) {}
                  ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/ArrayRef.h:92:18: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/ArrayRef.h:95:38: error: ‘initializer_list’ in namespace ‘std’ does not name a template type
     /*implicit*/ ArrayRef(const std::initializer_list<T> &Vec)
                                      ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/ArrayRef.h:95:54: error: expected ‘,’ or ‘...’ before ‘<’ token
     /*implicit*/ ArrayRef(const std::initializer_list<T> &Vec)
                                                      ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/ArrayRef.h:164:19: error: ‘enable_if’ in namespace ‘std’ does not name a template type
     typename std::enable_if<std::is_same<U, T>::value, ArrayRef<T>>::type &
                   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/ArrayRef.h:164:28: error: expected unqualified-id before ‘<’ token
     typename std::enable_if<std::is_same<U, T>::value, ArrayRef<T>>::type &
                            ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/ArrayRef.h:172:19: error: ‘enable_if’ in namespace ‘std’ does not name a template type
     typename std::enable_if<std::is_same<U, T>::value, ArrayRef<T>>::type &
                   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/ArrayRef.h:172:28: error: expected unqualified-id before ‘<’ token
     typename std::enable_if<std::is_same<U, T>::value, ArrayRef<T>>::type &
                            ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/ArrayRef.h: In constructor ‘at::ArrayRef<T>::ArrayRef()’:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/ArrayRef.h:58:36: error: ‘nullptr’ was not declared in this scope
     /*implicit*/ ArrayRef() : Data(nullptr), Length(0) {}
                                    ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/ArrayRef.h: In constructor ‘at::ArrayRef<T>::ArrayRef(int)’:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/ArrayRef.h:96:12: error: ‘Vec’ was not declared in this scope
     : Data(Vec.begin() == Vec.end() ? (T*)nullptr : Vec.begin()),
            ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/ArrayRef.h:96:43: error: ‘nullptr’ was not declared in this scope
     : Data(Vec.begin() == Vec.end() ? (T*)nullptr : Vec.begin()),
                                           ^
In file included from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Allocator.h:6:0,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/TH/THAllocator.h:6,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC/THCGeneral.h:5,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC/THC.h:4,
                 from /mapbar/acgtyrant/Projects/ccnet/cc_attention/src/lib_cffi.cpp:3:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/ArrayRef.h: In member function ‘const T& at::ArrayRef<T>::front() const’:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Error.h:113:19: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
   throw at::Error({__func__, __FILE__, __LINE__}, at::str(__VA_ARGS__))
                   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Error.h:130:5: note: in expansion of macro ‘AT_ERROR’
     AT_ERROR(at::str(__VA_ARGS__));   \
     ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/ArrayRef.h:119:7: note: in expansion of macro ‘AT_CHECK’
       AT_CHECK(!empty(), "ArrayRef: attempted to access front() of empty list");
       ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/ArrayRef.h: In member function ‘const T& at::ArrayRef<T>::back() const’:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Error.h:113:19: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
   throw at::Error({__func__, __FILE__, __LINE__}, at::str(__VA_ARGS__))
                   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Error.h:130:5: note: in expansion of macro ‘AT_ERROR’
     AT_ERROR(at::str(__VA_ARGS__));   \
     ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/ArrayRef.h:125:7: note: in expansion of macro ‘AT_CHECK’
       AT_CHECK(!empty(), "ArrayRef: attempted to access back() of empty list");
       ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/ArrayRef.h: In member function ‘at::ArrayRef<T> at::ArrayRef<T>::slice(size_t, size_t) const’:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Error.h:113:19: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
   throw at::Error({__func__, __FILE__, __LINE__}, at::str(__VA_ARGS__))
                   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Error.h:130:5: note: in expansion of macro ‘AT_ERROR’
     AT_ERROR(at::str(__VA_ARGS__));   \
     ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/ArrayRef.h:139:7: note: in expansion of macro ‘AT_CHECK’
       AT_CHECK(N+M <= size(), "ArrayRef: invalid slice, ", N, " + ", M, " is not <= ", size())
       ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/ArrayRef.h: In member function ‘const T& at::ArrayRef<T>::at(size_t) const’:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Error.h:113:19: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
   throw at::Error({__func__, __FILE__, __LINE__}, at::str(__VA_ARGS__))
                   ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Error.h:130:5: note: in expansion of macro ‘AT_ERROR’
     AT_ERROR(at::str(__VA_ARGS__));   \
     ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/ArrayRef.h:155:7: note: in expansion of macro ‘AT_CHECK’
       AT_CHECK(Index < Length, "ArrayRef: invalid index ", Index, " for length ", Length);
       ^
In file included from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/ScalarType.h:7:0,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Device.h:4,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Allocator.h:8,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/TH/THAllocator.h:6,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC/THCGeneral.h:5,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC/THC.h:4,
                 from /mapbar/acgtyrant/Projects/ccnet/cc_attention/src/lib_cffi.cpp:3:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Half.h: At global scope:
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Half.h:43:16: error: expected unqualified-id before numeric constant
 struct alignas(2) Half {
                ^
/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/ATen/Half.h:43:16: error: expected ‘)’ before numeric constant
In file included from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC/THCGeneral.h:13:0,
                 from /mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/../../lib/include/THC/THC.h:4,
                 from /mapbar/acgtyrant/Projects/ccnet/cc_attention/src/lib_cffi.cpp:3:
/usr/local/cuda/include/cuda_runtime.h:61:28: error: expected ‘}’ before end of line
/usr/local/cuda/include/cuda_runtime.h:61:28: error: expected declaration before end of line
Traceback (most recent call last):
  File "/usr/lib/python3.5/distutils/unixccompiler.py", line 118, in _compile
    extra_postargs)
  File "/usr/lib/python3.5/distutils/ccompiler.py", line 909, in spawn
    spawn(cmd, dry_run=self.dry_run)
  File "/usr/lib/python3.5/distutils/spawn.py", line 36, in spawn
    _spawn_posix(cmd, search_path, dry_run=dry_run)
  File "/usr/lib/python3.5/distutils/spawn.py", line 159, in _spawn_posix
    % (cmd, exit_status))
distutils.errors.DistutilsExecError: command 'x86_64-linux-gnu-gcc' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/cffi/ffiplatform.py", line 51, in _build
    dist.run_command('build_ext')
  File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/usr/lib/python3.5/distutils/command/build_ext.py", line 338, in run
    self.build_extensions()
  File "/usr/lib/python3.5/distutils/command/build_ext.py", line 447, in build_extensions
    self._build_extensions_serial()
  File "/usr/lib/python3.5/distutils/command/build_ext.py", line 472, in _build_extensions_serial
    self.build_extension(ext)
  File "/usr/lib/python3.5/distutils/command/build_ext.py", line 532, in build_extension
    depends=ext.depends)
  File "/usr/lib/python3.5/distutils/ccompiler.py", line 574, in compile
    self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
  File "/usr/lib/python3.5/distutils/unixccompiler.py", line 120, in _compile
    raise CompileError(msg)
distutils.errors.CompileError: command 'x86_64-linux-gnu-gcc' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "build.py", line 24, in <module>
    ffi.build()
  File "/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/__init__.py", line 189, in build
    _build_extension(ffi, cffi_wrapper_name, target_dir, verbose)
  File "/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/torch/utils/ffi/__init__.py", line 111, in _build_extension
    outfile = ffi.compile(tmpdir=tmpdir, verbose=verbose, target=libname)
  File "/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/cffi/api.py", line 697, in compile
    compiler_verbose=verbose, debug=debug, **kwds)
  File "/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/cffi/recompiler.py", line 1520, in recompile
    compiler_verbose, debug)
  File "/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/cffi/ffiplatform.py", line 22, in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
  File "/mapbar/acgtyrant/Projects/ccnet/.env/lib/python3.5/site-packages/cffi/ffiplatform.py", line 58, in _build
    raise VerificationError('%s: %s' % (e.__class__.__name__, e))
cffi.error.VerificationError: CompileError: command 'x86_64-linux-gnu-gcc' failed with exit status 1

I think it is because the ATen does not support std=c99 in 0.4.1. By the way, the cc_attention does not support 1.0.0 too while the latter does not support torch.utils.ffi.

acgtyrant commented 5 years ago

The easist solution is fix the wrong doc "To install PyTorch>=0.4.0" in README.

speedinghzl commented 5 years ago

@acgtyrant Thanks for your attention. This repo indeed does not support torch 1.0. And you can modify the std=c99 into std=c++11 to support torch 0.4.1. In fact, this repo does use the newest feature for c++ interface, e.g. ATen, runtime-compile due to the low version gcc (4.8.5) in our cluster. The doc is updated.