Repository: pytorch
Issue: A serious problem when installing caffe2. Can anyone  help me?
Labels: caffe2

[ 88%] Building CXX object caffe2/CMakeFiles/caffe2_gpu.dir/operators/tanh_op_cudnn.cc.o
In file included from /home/lgc/pytorch/caffe2/core/context_gpu.h:19:0,
                 from /home/lgc/pytorch/caffe2/operators/activation_ops_cudnn.h:4,
                 from /home/lgc/pytorch/caffe2/operators/tanh_op_cudnn.cc:3:
/home/lgc/pytorch/caffe2/core/common_cudnn.h:24:17: note: #pragma message: CUDNN version under 6.0 is supported at best effort.
 #pragma message "CUDNN version under 6.0 is supported at best effort."
                 ^
/home/lgc/pytorch/caffe2/core/common_cudnn.h:25:17: note: #pragma message: We strongly encourage you to move to 6.0 and above.
 #pragma message "We strongly encourage you to move to 6.0 and above."
                 ^
/home/lgc/pytorch/caffe2/core/common_cudnn.h:26:17: note: #pragma message: This message is intended to annoy you enough to update.
 #pragma message "This message is intended to annoy you enough to update."
                 ^
[ 88%] Building CXX object caffe2/CMakeFiles/caffe2_gpu.dir/operators/sigmoid_op_cudnn.cc.o
In file included from /home/lgc/pytorch/caffe2/core/context_gpu.h:19:0,
                 from /home/lgc/pytorch/caffe2/operators/activation_ops_cudnn.h:4,
                 from /home/lgc/pytorch/caffe2/operators/sigmoid_op_cudnn.cc:3:
/home/lgc/pytorch/caffe2/core/common_cudnn.h:24:17: note: #pragma message: CUDNN version under 6.0 is supported at best effort.
 #pragma message "CUDNN version under 6.0 is supported at best effort."
                 ^
/home/lgc/pytorch/caffe2/core/common_cudnn.h:25:17: note: #pragma message: We strongly encourage you to move to 6.0 and above.
 #pragma message "We strongly encourage you to move to 6.0 and above."
                 ^
/home/lgc/pytorch/caffe2/core/common_cudnn.h:26:17: note: #pragma message: This message is intended to annoy you enough to update.
 #pragma message "This message is intended to annoy you enough to update."
                 ^
[ 88%] Building CXX object caffe2/CMakeFiles/caffe2_gpu.dir/operators/transpose_op_cudnn.cc.o
In file included from /home/lgc/pytorch/caffe2/core/context_gpu.h:19:0,
                 from /home/lgc/pytorch/caffe2/operators/transpose_op_cudnn.cc:6:
/home/lgc/pytorch/caffe2/core/common_cudnn.h:24:17: note: #pragma message: CUDNN version under 6.0 is supported at best effort.
 #pragma message "CUDNN version under 6.0 is supported at best effort."
                 ^
/home/lgc/pytorch/caffe2/core/common_cudnn.h:25:17: note: #pragma message: We strongly encourage you to move to 6.0 and above.
 #pragma message "We strongly encourage you to move to 6.0 and above."
                 ^
/home/lgc/pytorch/caffe2/core/common_cudnn.h:26:17: note: #pragma message: This message is intended to annoy you enough to update.
 #pragma message "This message is intended to annoy you enough to update."
                 ^
[ 88%] Building CXX object caffe2/CMakeFiles/caffe2_gpu.dir/operators/dropout_op_cudnn.cc.o
In file included from /home/lgc/pytorch/caffe2/core/context_gpu.h:19:0,
                 from /home/lgc/pytorch/caffe2/operators/dropout_op_cudnn.cc:1:
/home/lgc/pytorch/caffe2/core/common_cudnn.h:24:17: note: #pragma message: CUDNN version under 6.0 is supported at best effort.
 #pragma message "CUDNN version under 6.0 is supported at best effort."
                 ^
/home/lgc/pytorch/caffe2/core/common_cudnn.h:25:17: note: #pragma message: We strongly encourage you to move to 6.0 and above.
 #pragma message "We strongly encourage you to move to 6.0 and above."
                 ^
/home/lgc/pytorch/caffe2/core/common_cudnn.h:26:17: note: #pragma message: This message is intended to annoy you enough to update.
 #pragma message "This message is intended to annoy you enough to update."
                 ^
[ 88%] Building CXX object caffe2/CMakeFiles/caffe2_gpu.dir/operators/softmax_op_cudnn.cc.o
In file included from /home/lgc/pytorch/caffe2/core/context_gpu.h:19:0,
                 from /home/lgc/pytorch/caffe2/operators/softmax_op_cudnn.cc:1:
/home/lgc/pytorch/caffe2/core/common_cudnn.h:24:17: note: #pragma message: CUDNN version under 6.0 is supported at best effort.
 #pragma message "CUDNN version under 6.0 is supported at best effort."
                 ^
/home/lgc/pytorch/caffe2/core/common_cudnn.h:25:17: note: #pragma message: We strongly encourage you to move to 6.0 and above.
 #pragma message "We strongly encourage you to move to 6.0 and above."
                 ^
/home/lgc/pytorch/caffe2/core/common_cudnn.h:26:17: note: #pragma message: This message is intended to annoy you enough to update.
 #pragma message "This message is intended to annoy you enough to update."
                 ^
[ 88%] Building CXX object caffe2/CMakeFiles/caffe2_gpu.dir/operators/spatial_batch_norm_op_cudnn.cc.o
In file included from /home/lgc/pytorch/caffe2/core/context_gpu.h:19:0,
                 from /home/lgc/pytorch/caffe2/operators/spatial_batch_norm_op_cudnn.cc:3:
/home/lgc/pytorch/caffe2/core/common_cudnn.h:24:17: note: #pragma message: CUDNN version under 6.0 is supported at best effort.
 #pragma message "CUDNN version under 6.0 is supported at best effort."
                 ^
/home/lgc/pytorch/caffe2/core/common_cudnn.h:25:17: note: #pragma message: We strongly encourage you to move to 6.0 and above.
 #pragma message "We strongly encourage you to move to 6.0 and above."
                 ^
/home/lgc/pytorch/caffe2/core/common_cudnn.h:26:17: note: #pragma message: This message is intended to annoy you enough to update.
 #pragma message "This message is intended to annoy you enough to update."
                 ^
[ 89%] Building CXX object caffe2/CMakeFiles/caffe2_gpu.dir/operators/elu_op_cudnn.cc.o
In file included from /home/lgc/pytorch/caffe2/core/context_gpu.h:19:0,
                 from /home/lgc/pytorch/caffe2/operators/activation_ops_cudnn.h:4,
                 from /home/lgc/pytorch/caffe2/operators/elu_op_cudnn.cc:3:
/home/lgc/pytorch/caffe2/core/common_cudnn.h:24:17: note: #pragma message: CUDNN version under 6.0 is supported at best effort.
 #pragma message "CUDNN version under 6.0 is supported at best effort."
                 ^
/home/lgc/pytorch/caffe2/core/common_cudnn.h:25:17: note: #pragma message: We strongly encourage you to move to 6.0 and above.
 #pragma message "We strongly encourage you to move to 6.0 and above."
                 ^
/home/lgc/pytorch/caffe2/core/common_cudnn.h:26:17: note: #pragma message: This message is intended to annoy you enough to update.
 #pragma message "This message is intended to annoy you enough to update."
                 ^
/home/lgc/pytorch/caffe2/operators/elu_op_cudnn.cc:8:25: **_error: ‘CUDNN_ACTIVATION_ELU’ was not declared in this scope_**
 class CuDNNActivationOp<CUDNN_ACTIVATION_ELU> final
                         ^
/home/lgc/pytorch/caffe2/operators/elu_op_cudnn.cc:8:45**_: error: template argument 1 is invalid_**
 class CuDNNActivationOp<CUDNN_ACTIVATION_ELU> final
                                             ^
/home/lgc/pytorch/caffe2/operators/elu_op_cudnn.cc:54:33: **_error: ‘CUDNN_ACTIVATION_ELU’ was not declared in this scope_**
 class CuDNNActivationGradientOp<CUDNN_ACTIVATION_ELU> final
                                 ^
/home/lgc/pytorch/caffe2/operators/elu_op_cudnn.cc:54:53: **_error: template argument 1 is invalid
 class CuDNNActivationGradientOp<CUDNN_ACTIVATION_ELU> final_**
                                                     ^
In file included from /home/lgc/pytorch/caffe2/core/flags.h:23:0,
                 from /home/lgc/pytorch/caffe2/core/logging.h:10,
                 from /home/lgc/pytorch/caffe2/core/allocator.h:6,
                 from /home/lgc/pytorch/caffe2/core/context.h:9,
                 from /home/lgc/pytorch/caffe2/operators/elementwise_ops.h:10,
                 from /home/lgc/pytorch/caffe2/operators/elu_op.h:6,
                 from /home/lgc/pytorch/caffe2/operators/elu_op_cudnn.cc:1:
/home/lgc/pytorch/caffe2/operators/elu_op_cudnn.cc:104:48: **_error: ‘CUDNN_ACTIVATION_ELU’ was not declared in this scope_**
 REGISTER_CUDNN_OPERATOR(Elu, CuDNNActivationOp<CUDNN_ACTIVATION_ELU>);
                                                ^
/home/lgc/pytorch/caffe2/core/registry.h:180:48: note: in definition of macro ‘CAFFE_REGISTER_TYPED_CLASS’
       Registerer##RegistryName::DefaultCreator<__VA_ARGS__>,                  \
                                                ^
/home/lgc/pytorch/caffe2/core/operator.h:848:3: note: in expansion of macro ‘CAFFE_REGISTER_CLASS’
   CAFFE_REGISTER_CLASS(                                       \
   ^
/home/lgc/pytorch/caffe2/core/operator.h:853:3: note: in expansion of macro ‘REGISTER_CUDA_OPERATOR_WITH_ENGINE’
   REGISTER_CUDA_OPERATOR_WITH_ENGINE(name, CUDNN, __VA_ARGS__)
   ^
/home/lgc/pytorch/caffe2/operators/elu_op_cudnn.cc:104:1: note: in expansion of macro ‘REGISTER_CUDNN_OPERATOR’
 REGISTER_CUDNN_OPERATOR(Elu, CuDNNActivationOp<CUDNN_ACTIVATION_ELU>);
 ^
/home/lgc/pytorch/caffe2/operators/elu_op_cudnn.cc:104:68: **_error: template argument 1 is invalid_**
 REGISTER_CUDNN_OPERATOR(Elu, CuDNNActivationOp<CUDNN_ACTIVATION_ELU>);
                                                                    ^
/home/lgc/pytorch/caffe2/core/registry.h:180:48: note: in definition of macro ‘CAFFE_REGISTER_TYPED_CLASS’
       Registerer##RegistryName::DefaultCreator<__VA_ARGS__>,                  \
                                                ^
/home/lgc/pytorch/caffe2/core/operator.h:848:3: note: in expansion of macro ‘CAFFE_REGISTER_CLASS’
   CAFFE_REGISTER_CLASS(                                       \
   ^
/home/lgc/pytorch/caffe2/core/operator.h:853:3: note: in expansion of macro ‘REGISTER_CUDA_OPERATOR_WITH_ENGINE’
   REGISTER_CUDA_OPERATOR_WITH_ENGINE(name, CUDNN, __VA_ARGS__)
   ^
/home/lgc/pytorch/caffe2/operators/elu_op_cudnn.cc:104:1: note: in expansion of macro ‘REGISTER_CUDNN_OPERATOR’
 REGISTER_CUDNN_OPERATOR(Elu, CuDNNActivationOp<CUDNN_ACTIVATION_ELU>);
 ^
/home/lgc/pytorch/caffe2/operators/elu_op_cudnn.cc:104:48: error: ‘CUDNN_ACTIVATION_ELU’ was not declared in this scope
 REGISTER_CUDNN_OPERATOR(Elu, CuDNNActivationOp<CUDNN_ACTIVATION_ELU>);
                                                ^
/home/lgc/pytorch/caffe2/core/registry.h:181:20: note: in definition of macro ‘CAFFE_REGISTER_TYPED_CLASS’
       DemangleType<__VA_ARGS__>());                                           \
                    ^
/home/lgc/pytorch/caffe2/core/operator.h:848:3: note: in expansion of macro ‘CAFFE_REGISTER_CLASS’
   CAFFE_REGISTER_CLASS(                                       \
   ^
/home/lgc/pytorch/caffe2/core/operator.h:853:3: note: in expansion of macro ‘REGISTER_CUDA_OPERATOR_WITH_ENGINE’
   REGISTER_CUDA_OPERATOR_WITH_ENGINE(name, CUDNN, __VA_ARGS__)
   ^
/home/lgc/pytorch/caffe2/operators/elu_op_cudnn.cc:104:1: note: in expansion of macro ‘REGISTER_CUDNN_OPERATOR’
 REGISTER_CUDNN_OPERATOR(Elu, CuDNNActivationOp<CUDNN_ACTIVATION_ELU>);
 ^
/home/lgc/pytorch/caffe2/operators/elu_op_cudnn.cc:104:68: error: template argument 1 is invalid
 REGISTER_CUDNN_OPERATOR(Elu, CuDNNActivationOp<CUDNN_ACTIVATION_ELU>);
                                                                    ^
/home/lgc/pytorch/caffe2/core/registry.h:181:20: note: in definition of macro ‘CAFFE_REGISTER_TYPED_CLASS’
       DemangleType<__VA_ARGS__>());                                           \
                    ^
/home/lgc/pytorch/caffe2/core/operator.h:848:3: note: in expansion of macro ‘CAFFE_REGISTER_CLASS’
   CAFFE_REGISTER_CLASS(                                       \
   ^
/home/lgc/pytorch/caffe2/core/operator.h:853:3: note: in expansion of macro ‘REGISTER_CUDA_OPERATOR_WITH_ENGINE’
   REGISTER_CUDA_OPERATOR_WITH_ENGINE(name, CUDNN, __VA_ARGS__)
   ^
/home/lgc/pytorch/caffe2/operators/elu_op_cudnn.cc:104:1: note: in expansion of macro ‘REGISTER_CUDNN_OPERATOR’
 REGISTER_CUDNN_OPERATOR(Elu, CuDNNActivationOp<CUDNN_ACTIVATION_ELU>);
 ^
/home/lgc/pytorch/caffe2/core/registry.h:181:33: **_error: no matching function for call to_** ‘DemangleType()’
       DemangleType<__VA_ARGS__>());                                           \
                                 ^
/home/lgc/pytorch/caffe2/core/registry.h:210:3: note: in expansion of macro ‘CAFFE_REGISTER_TYPED_CLASS’
   CAFFE_REGISTER_TYPED_CLASS(RegistryName, #key, __VA_ARGS__)
   ^
/home/lgc/pytorch/caffe2/core/operator.h:848:3: note: in expansion of macro ‘CAFFE_REGISTER_CLASS’
   CAFFE_REGISTER_CLASS(                                       \
   ^
/home/lgc/pytorch/caffe2/core/operator.h:853:3: note: in expansion of macro ‘REGISTER_CUDA_OPERATOR_WITH_ENGINE’
   REGISTER_CUDA_OPERATOR_WITH_ENGINE(name, CUDNN, __VA_ARGS__)
   ^
/home/lgc/pytorch/caffe2/operators/elu_op_cudnn.cc:104:1: note: in expansion of macro ‘REGISTER_CUDNN_OPERATOR’
 REGISTER_CUDNN_OPERATOR(Elu, CuDNNActivationOp<CUDNN_ACTIVATION_ELU>);
 ^
In file included from /home/lgc/pytorch/caffe2/core/registry.h:21:0,
                 from /home/lgc/pytorch/caffe2/core/flags.h:23,
                 from /home/lgc/pytorch/caffe2/core/logging.h:10,
                 from /home/lgc/pytorch/caffe2/core/allocator.h:6,
                 from /home/lgc/pytorch/caffe2/core/context.h:9,
                 from /home/lgc/pytorch/caffe2/operators/elementwise_ops.h:10,
                 from /home/lgc/pytorch/caffe2/operators/elu_op.h:6,
                 from /home/lgc/pytorch/caffe2/operators/elu_op_cudnn.cc:1:
/home/lgc/pytorch/caffe2/core/typeid.h:80:20: note: candidate: template<class T> const char* caffe2::DemangleType()
 static const char* DemangleType() {
                    ^
/home/lgc/pytorch/caffe2/core/typeid.h:80:20: note:   **_template argument deduction/substitution failed:_**
In file included from /home/lgc/pytorch/caffe2/core/flags.h:23:0,
                 from /home/lgc/pytorch/caffe2/core/logging.h:10,
                 from /home/lgc/pytorch/caffe2/core/allocator.h:6,
                 from /home/lgc/pytorch/caffe2/core/context.h:9,
                 from /home/lgc/pytorch/caffe2/operators/elementwise_ops.h:10,
                 from /home/lgc/pytorch/caffe2/operators/elu_op.h:6,
                 from /home/lgc/pytorch/caffe2/operators/elu_op_cudnn.cc:1:
/home/lgc/pytorch/caffe2/core/registry.h:181:33: error: template argument 1 is invalid
       DemangleType<__VA_ARGS__>());                                           \
                                 ^
/home/lgc/pytorch/caffe2/core/registry.h:210:3: note: in expansion of macro ‘CAFFE_REGISTER_TYPED_CLASS’
   CAFFE_REGISTER_TYPED_CLASS(RegistryName, #key, __VA_ARGS__)
   ^
/home/lgc/pytorch/caffe2/core/operator.h:848:3: note: in expansion of macro ‘CAFFE_REGISTER_CLASS’
   CAFFE_REGISTER_CLASS(                                       \
   ^
/home/lgc/pytorch/caffe2/core/operator.h:853:3: note: in expansion of macro ‘REGISTER_CUDA_OPERATOR_WITH_ENGINE’
   REGISTER_CUDA_OPERATOR_WITH_ENGINE(name, CUDNN, __VA_ARGS__)
   ^
/home/lgc/pytorch/caffe2/operators/elu_op_cudnn.cc:104:1: note: in expansion of macro ‘REGISTER_CUDNN_OPERATOR’
 REGISTER_CUDNN_OPERATOR(Elu, CuDNNActivationOp<CUDNN_ACTIVATION_ELU>);
 ^
/home/lgc/pytorch/caffe2/operators/elu_op_cudnn.cc:107:31: **_error: ‘CUDNN_ACTIVATION_ELU’ was not declared in this scope_**
     CuDNNActivationGradientOp<CUDNN_ACTIVATION_ELU>);
                               ^
/home/lgc/pytorch/caffe2/core/registry.h:180:48: note: in definition of macro ‘CAFFE_REGISTER_TYPED_CLASS’
       Registerer##RegistryName::DefaultCreator<__VA_ARGS__>,                  \
                                                ^
/home/lgc/pytorch/caffe2/core/operator.h:848:3: note: in expansion of macro ‘CAFFE_REGISTER_CLASS’
   CAFFE_REGISTER_CLASS(                                       \
   ^
/home/lgc/pytorch/caffe2/core/operator.h:853:3: note: in expansion of macro ‘REGISTER_CUDA_OPERATOR_WITH_ENGINE’
   REGISTER_CUDA_OPERATOR_WITH_ENGINE(name, CUDNN, __VA_ARGS__)
   ^
/home/lgc/pytorch/caffe2/operators/elu_op_cudnn.cc:105:1: note: in expansion of macro ‘REGISTER_CUDNN_OPERATOR’
 REGISTER_CUDNN_OPERATOR(
 ^
/home/lgc/pytorch/caffe2/operators/elu_op_cudnn.cc:107:51: e**_rror: template argument 1 is invalid_**
     CuDNNActivationGradientOp<CUDNN_ACTIVATION_ELU>);
                                                   ^
/home/lgc/pytorch/caffe2/core/registry.h:180:48: note: in definition of macro ‘CAFFE_REGISTER_TYPED_CLASS’
       Registerer##RegistryName::DefaultCreator<__VA_ARGS__>,                  \
                                                ^
/home/lgc/pytorch/caffe2/core/operator.h:848:3: note: in expansion of macro ‘CAFFE_REGISTER_CLASS’
   CAFFE_REGISTER_CLASS(                                       \
   ^
/home/lgc/pytorch/caffe2/core/operator.h:853:3: note: in expansion of macro ‘REGISTER_CUDA_OPERATOR_WITH_ENGINE’
   REGISTER_CUDA_OPERATOR_WITH_ENGINE(name, CUDNN, __VA_ARGS__)
   ^
/home/lgc/pytorch/caffe2/operators/elu_op_cudnn.cc:105:1: note: in expansion of macro ‘REGISTER_CUDNN_OPERATOR’
 REGISTER_CUDNN_OPERATOR(
 ^
/home/lgc/pytorch/caffe2/operators/elu_op_cudnn.cc:107:31: **_error: ‘CUDNN_ACTIVATION_ELU’ was not declared in this scope_**
     CuDNNActivationGradientOp<CUDNN_ACTIVATION_ELU>);
                               ^
/home/lgc/pytorch/caffe2/core/registry.h:181:20: note: in definition of macro ‘CAFFE_REGISTER_TYPED_CLASS’
       DemangleType<__VA_ARGS__>());                                           \
                    ^
/home/lgc/pytorch/caffe2/core/operator.h:848:3: note: in expansion of macro ‘CAFFE_REGISTER_CLASS’
   CAFFE_REGISTER_CLASS(                                       \
   ^
/home/lgc/pytorch/caffe2/core/operator.h:853:3: note: in expansion of macro ‘REGISTER_CUDA_OPERATOR_WITH_ENGINE’
   REGISTER_CUDA_OPERATOR_WITH_ENGINE(name, CUDNN, __VA_ARGS__)
   ^
/home/lgc/pytorch/caffe2/operators/elu_op_cudnn.cc:105:1: note: in expansion of macro ‘REGISTER_CUDNN_OPERATOR’
 REGISTER_CUDNN_OPERATOR(
 ^
/home/lgc/pytorch/caffe2/operators/elu_op_cudnn.cc:107:51: error: template argument 1 is invalid
     CuDNNActivationGradientOp<CUDNN_ACTIVATION_ELU>);
                                                   ^
/home/lgc/pytorch/caffe2/core/registry.h:181:20: note: in definition of macro ‘CAFFE_REGISTER_TYPED_CLASS’
       DemangleType<__VA_ARGS__>());                                           \
                    ^
/home/lgc/pytorch/caffe2/core/operator.h:848:3: note: in expansion of macro ‘CAFFE_REGISTER_CLASS’
   CAFFE_REGISTER_CLASS(                                       \
   ^
/home/lgc/pytorch/caffe2/core/operator.h:853:3: note: in expansion of macro ‘REGISTER_CUDA_OPERATOR_WITH_ENGINE’
   REGISTER_CUDA_OPERATOR_WITH_ENGINE(name, CUDNN, __VA_ARGS__)
   ^
/home/lgc/pytorch/caffe2/operators/elu_op_cudnn.cc:105:1: note: in expansion of macro ‘REGISTER_CUDNN_OPERATOR’
 REGISTER_CUDNN_OPERATOR(
 ^
/home/lgc/pytorch/caffe2/core/registry.h:181:33: error: no matching function for call to ‘DemangleType()’
       DemangleType<__VA_ARGS__>());                                           \
                                 ^
/home/lgc/pytorch/caffe2/core/registry.h:210:3: note: in expansion of macro ‘CAFFE_REGISTER_TYPED_CLASS’
   CAFFE_REGISTER_TYPED_CLASS(RegistryName, #key, __VA_ARGS__)
   ^
/home/lgc/pytorch/caffe2/core/operator.h:848:3: note: in expansion of macro ‘CAFFE_REGISTER_CLASS’
   CAFFE_REGISTER_CLASS(                                       \
   ^
/home/lgc/pytorch/caffe2/core/operator.h:853:3: note: in expansion of macro ‘REGISTER_CUDA_OPERATOR_WITH_ENGINE’
   REGISTER_CUDA_OPERATOR_WITH_ENGINE(name, CUDNN, __VA_ARGS__)
   ^
/home/lgc/pytorch/caffe2/operators/elu_op_cudnn.cc:105:1: note: in expansion of macro ‘REGISTER_CUDNN_OPERATOR’
 REGISTER_CUDNN_OPERATOR(
 ^
In file included from /home/lgc/pytorch/caffe2/core/registry.h:21:0,
                 from /home/lgc/pytorch/caffe2/core/flags.h:23,
                 from /home/lgc/pytorch/caffe2/core/logging.h:10,
                 from /home/lgc/pytorch/caffe2/core/allocator.h:6,
                 from /home/lgc/pytorch/caffe2/core/context.h:9,
                 from /home/lgc/pytorch/caffe2/operators/elementwise_ops.h:10,
                 from /home/lgc/pytorch/caffe2/operators/elu_op.h:6,
                 from /home/lgc/pytorch/caffe2/operators/elu_op_cudnn.cc:1:
/home/lgc/pytorch/caffe2/core/typeid.h:80:20: note: candidate: template<class T> const char* caffe2::DemangleType()
 static const char* DemangleType() {
                    ^
/home/lgc/pytorch/caffe2/core/typeid.h:80:20: note:   template argument deduction/substitution failed:
In file included from /home/lgc/pytorch/caffe2/core/flags.h:23:0,
                 from /home/lgc/pytorch/caffe2/core/logging.h:10,
                 from /home/lgc/pytorch/caffe2/core/allocator.h:6,
                 from /home/lgc/pytorch/caffe2/core/context.h:9,
                 from /home/lgc/pytorch/caffe2/operators/elementwise_ops.h:10,
                 from /home/lgc/pytorch/caffe2/operators/elu_op.h:6,
                 from /home/lgc/pytorch/caffe2/operators/elu_op_cudnn.cc:1:
/home/lgc/pytorch/caffe2/core/registry.h:181:33: error: template argument 1 is invalid
       DemangleType<__VA_ARGS__>());                                           \
                                 ^
/home/lgc/pytorch/caffe2/core/registry.h:210:3: note: in expansion of macro ‘CAFFE_REGISTER_TYPED_CLASS’
   CAFFE_REGISTER_TYPED_CLASS(RegistryName, #key, __VA_ARGS__)
   ^
/home/lgc/pytorch/caffe2/core/operator.h:848:3: note: in expansion of macro ‘CAFFE_REGISTER_CLASS’
   CAFFE_REGISTER_CLASS(                                       \
   ^
/home/lgc/pytorch/caffe2/core/operator.h:853:3: note: in expansion of macro ‘REGISTER_CUDA_OPERATOR_WITH_ENGINE’
   REGISTER_CUDA_OPERATOR_WITH_ENGINE(name, CUDNN, __VA_ARGS__)
   ^
/home/lgc/pytorch/caffe2/operators/elu_op_cudnn.cc:105:1: note: in expansion of macro ‘REGISTER_CUDNN_OPERATOR’
 REGISTER_CUDNN_OPERATOR(
 ^
_**caffe2/CMakeFiles/caffe2_gpu.dir/build.make:1386: recipe for target 'caffe2/CMakeFiles/caffe2_gpu.dir/operators/elu_op_cudnn.cc.o' failed
make[2]: *** [caffe2/CMakeFiles/caffe2_gpu.dir/operators/elu_op_cudnn.cc.o] Error 1
CMakeFiles/Makefile2:1363: recipe for target 'caffe2/CMakeFiles/caffe2_gpu.dir/all' failed
make[1]: *** [caffe2/CMakeFiles/caffe2_gpu.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2**_