Open liuge1008 opened 4 years ago
[ 1%] Building CXX object source/rcnn/layers/CMakeFiles/layers.dir/batch_norm.cpp.o [ 2%] Building CXX object source/rcnn/layers/CMakeFiles/layers.dir/conv2d.cpp.o In file included from /home/b324-no2/lg/maskrcnn_benchmark.cpp-master/source/rcnn/layers/conv2d.cpp:1:0: /home/b324-no2/lg/maskrcnn_benchmark.cpp-master/source/rcnn/layers/../../../include/rcnn/layers/conv2d.h:9:59: error: expected template-name before ‘<’ token class _NewEmptyTensorOp : public torch::autograd::Function<_NewEmptyTensorOp> { ^ /home/b324-no2/lg/maskrcnn_benchmark.cpp-master/source/rcnn/layers/../../../include/rcnn/layers/conv2d.h:9:59: error: expected ‘{’ before ‘<’ token /home/b324-no2/lg/maskrcnn_benchmark.cpp-master/source/rcnn/layers/../../../include/rcnn/layers/conv2d.h:9:59: error: expected unqualified-id before ‘<’ token /home/b324-no2/lg/maskrcnn_benchmark.cpp-master/source/rcnn/layers/conv2d.cpp:42:1: error: expected ‘}’ at end of input } // namespace rcnn ^ /home/b324-no2/lg/maskrcnn_benchmark.cpp-master/source/rcnn/layers/conv2d.cpp:42:1: error: expected ‘}’ at end of input make[2]: [source/rcnn/layers/CMakeFiles/layers.dir/build.make:76: source/rcnn/layers/CMakeFiles/layers.dir/conv2d.cpp.o] Error 1 make[2]: Leaving directory '/home/b324-no2/lg/maskrcnn_benchmark.cpp-master/build' make[1]: [CMakeFiles/Makefile2:343: source/rcnn/layers/CMakeFiles/layers.dir/all] Error 2 make[1]: Leaving directory '/home/b324-no2/lg/maskrcnn_benchmark.cpp-master/build' make: *** [Makefile:130: all] Error 2
please help me ,tks!!!!
@lsrock1
what is your libtorch version? I think something changed in new libtorch.
[ 1%] Building CXX object source/rcnn/layers/CMakeFiles/layers.dir/batch_norm.cpp.o [ 2%] Building CXX object source/rcnn/layers/CMakeFiles/layers.dir/conv2d.cpp.o In file included from /home/b324-no2/lg/maskrcnn_benchmark.cpp-master/source/rcnn/layers/conv2d.cpp:1:0: /home/b324-no2/lg/maskrcnn_benchmark.cpp-master/source/rcnn/layers/../../../include/rcnn/layers/conv2d.h:9:59: error: expected template-name before ‘<’ token class _NewEmptyTensorOp : public torch::autograd::Function<_NewEmptyTensorOp> { ^ /home/b324-no2/lg/maskrcnn_benchmark.cpp-master/source/rcnn/layers/../../../include/rcnn/layers/conv2d.h:9:59: error: expected ‘{’ before ‘<’ token /home/b324-no2/lg/maskrcnn_benchmark.cpp-master/source/rcnn/layers/../../../include/rcnn/layers/conv2d.h:9:59: error: expected unqualified-id before ‘<’ token /home/b324-no2/lg/maskrcnn_benchmark.cpp-master/source/rcnn/layers/conv2d.cpp:42:1: error: expected ‘}’ at end of input } // namespace rcnn ^ /home/b324-no2/lg/maskrcnn_benchmark.cpp-master/source/rcnn/layers/conv2d.cpp:42:1: error: expected ‘}’ at end of input make[2]: [source/rcnn/layers/CMakeFiles/layers.dir/build.make:76: source/rcnn/layers/CMakeFiles/layers.dir/conv2d.cpp.o] Error 1 make[2]: Leaving directory '/home/b324-no2/lg/maskrcnn_benchmark.cpp-master/build' make[1]: [CMakeFiles/Makefile2:343: source/rcnn/layers/CMakeFiles/layers.dir/all] Error 2 make[1]: Leaving directory '/home/b324-no2/lg/maskrcnn_benchmark.cpp-master/build' make: *** [Makefile:130: all] Error 2
please help me ,tks!!!!