lsrock1 / maskrcnn_benchmark.cpp

Implementation maskrcnn-benchmark, pytorch c++ frontend
MIT License
81 stars 23 forks source link

error: expected template-name before ‘<’ token class _NewEmptyTensorOp : public torch::autograd::Function<_NewEmptyTensorOp> #17

Open liuge1008 opened 4 years ago

liuge1008 commented 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!!!!

liuge1008 commented 4 years ago

@lsrock1

lsrock1 commented 4 years ago

what is your libtorch version? I think something changed in new libtorch.