/home/dl/qiqi/github/vision/torchvision/csrc/ROIAlign.h:80:24: error: ‘torch::autograd::AutogradContext’ has not been declared
using torch::autograd::AutogradContext;
^
/home/dl/qiqi/github/vision/torchvision/csrc/ROIAlign.h:84:58: error: expected template-name before ‘<’ token
class ROIAlignFunction : public torch::autograd::Function {
^
/home/dl/qiqi/github/vision/torchvision/csrc/ROIAlign.h:84:58: error: expected ‘{’ before ‘<’ token
/home/dl/qiqi/github/vision/torchvision/csrc/ROIAlign.h:84:58: error: expected unqualified-id before ‘<’ token
error: command 'gcc' failed with exit status 1
How can i slove it?
/home/dl/qiqi/github/vision/torchvision/csrc/ROIAlign.h:80:24: error: ‘torch::autograd::AutogradContext’ has not been declared using torch::autograd::AutogradContext; ^ /home/dl/qiqi/github/vision/torchvision/csrc/ROIAlign.h:84:58: error: expected template-name before ‘<’ token class ROIAlignFunction : public torch::autograd::Function {
^
/home/dl/qiqi/github/vision/torchvision/csrc/ROIAlign.h:84:58: error: expected ‘{’ before ‘<’ token
/home/dl/qiqi/github/vision/torchvision/csrc/ROIAlign.h:84:58: error: expected unqualified-id before ‘<’ token
error: command 'gcc' failed with exit status 1
How can i slove it?