AttributeError: module 'caffe2.proto.caffe2_pb2' has no attribute 'NetParameter'

搜了很久没找到答案,望解答,是caffe2现在没有这个api了吗,还是说改名了

你应该是通过教程实现的代码吗?你按照教程的模块版本安装试试,应该是模块版本变更导致相关函数属性等变动