Advertisement
Guest User

Uff SSD C++ plugin compile error

a guest
Sep 13th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 69.31 KB | None | 0 0
  1. root@e32b03d7c0a0:/workspace/tensorrt/python/examples/custom_layers/tensorrtplugins# python setup.py install
  2. running install
  3. running bdist_egg
  4. running egg_info
  5. writing requirements to tensorrtplugins.egg-info/requires.txt
  6. writing tensorrtplugins.egg-info/PKG-INFO
  7. writing dependency_links to tensorrtplugins.egg-info/dependency_links.txt
  8. writing top-level names to tensorrtplugins.egg-info/top_level.txt
  9. reading manifest file 'tensorrtplugins.egg-info/SOURCES.txt'
  10. reading manifest template 'MANIFEST.in'
  11. writing manifest file 'tensorrtplugins.egg-info/SOURCES.txt'
  12. installing library code to build/bdist.linux-x86_64/egg
  13. running install_lib
  14. running build_py
  15. running build_ext
  16. building 'tensorrtplugins._plugins' extension
  17. swigging interfaces/plugins.i to interfaces/plugins_wrap.cpp
  18. swig -python -c++ -v -modern -builtin -Wall -fvirtual -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/usr/include -I/usr/include/c++/4.8/ -py3 -o interfaces/plugins_wrap.cpp interfaces/plugins.i
  19. Language subdirectory: python
  20. Search paths:
  21.    ./
  22.    /usr/include/x86_64-linux-gnu/
  23.    /usr/local/include/
  24.    /usr/include/
  25.    /usr/include/c++/4.8//
  26.    ./swig_lib/python/
  27.    /usr/share/swig3.0/python/
  28.    ./swig_lib/
  29.    /usr/share/swig3.0/
  30. Preprocessing...
  31. src/SSDPluginFactory.h:429: Warning 206: Unexpected tokens after #endif directive.
  32. Starting language-specific parse...
  33. /usr/include/x86_64-linux-gnu/NvInfer.h:514: Warning 321: 'type' conflicts with a built-in name in python
  34. Processing types...
  35. src/SSDPluginFactory.h:199: Warning 401: Nothing known about base class 'nvuffparser::IPluginFactory'. Ignored.
  36. C++ analysis...
  37. /usr/include/x86_64-linux-gnu/NvInfer.h:2922: Warning 403: Class 'nvinfer1::IRaggedSoftMaxLayer' might be abstract, no constructors generated,
  38. /usr/include/x86_64-linux-gnu/NvInfer.h:730: Warning 403: Method nvinfer1::ILayer::getType() const might not be implemented.
  39. /usr/include/x86_64-linux-gnu/NvInfer.h:3939: Warning 403: Class 'nvinfer1::IInt8EntropyCalibrator' might be abstract, no constructors generated,
  40. /usr/include/x86_64-linux-gnu/NvInfer.h:3883: Warning 403: Method nvinfer1::IInt8Calibrator::getBatchSize() const might not be implemented.
  41. Processing nested classes...
  42. Generating wrappers...
  43. src/FullyConnected.h:80: Warning 401: Base class 'nvinfer1::IPlugin' ignored - unknown module name for base. Either import the appropriate module interface file or specify the name of the module in the %import directive.
  44. src/FullyConnected.h:211: Warning 401: Base class 'nvinfer1::IPluginFactory' ignored - unknown module name for base. Either import the appropriate module interface file or specify the name of the module in the %import directive.
  45. src/FullyConnected.h:211: Warning 401: Base class 'nvcaffeparser1::IPluginFactory' ignored - unknown module name for base. Either import the appropriate module interface file or specify the name of the module in the %import directive.
  46. src/SSDPluginFactory.h:31: Warning 401: Base class 'nvinfer1::IPlugin' ignored - unknown module name for base. Either import the appropriate module interface file or specify the name of the module in the %import directive.
  47. src/SSDPluginFactory.h:200: Warning 401: Base class 'nvinfer1::IPluginFactory' ignored - unknown module name for base. Either import the appropriate module interface file or specify the name of the module in the %import directive.
  48. g++ -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I. -I/usr/include -I/usr/include/x86_64-linux-gnu -I/usr/include/python3.5 -I/usr/local/lib/python3.5/numpy/core/include -I/usr/include/x86_64-linux-gnu -I/usr/local/cuda/include -I/usr/local/include -I/usr/include/x86_64-linux-gnu/ -I/usr/include/python3.5m -c interfaces/plugins_wrap.cpp -o build/temp.linux-x86_64-3.5/interfaces/plugins_wrap.o -std=c++11 -DNDEBUG -DUNIX -D__UNIX -m64 -fPIC -O2 -w -fmessage-length=0
  49. cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
  50. In file included from interfaces/plugins_wrap.cpp:3684:0:
  51. ./src/SSDPluginFactory.h: In constructor 'FlattenConcat::FlattenConcat(const void*, size_t)':
  52. ./src/SSDPluginFactory.h:51:9: error: 'for_each' is not a member of 'std'
  53.          std::for_each(mInputConcatAxis, mInputConcatAxis + mNumInputs, [&](int& inp) { inp = read<int>(d); });
  54.          ^
  55. ./src/SSDPluginFactory.h:55:9: error: 'for_each' is not a member of 'std'
  56.          std::for_each(mCopySize, mCopySize + mNumInputs, [&](size_t& inp) { inp = read<size_t>(d); });
  57.          ^
  58. ./src/SSDPluginFactory.h: In member function 'virtual int FlattenConcat::enqueue(int, const void* const*, void**, void*, cudaStream_t)':
  59. ./src/SSDPluginFactory.h:107:22: error: 'accumulate' is not a member of 'std'
  60.          numConcats = std::accumulate(mCHW.d, mCHW.d + mConcatAxisID - 1, 1, std::multiplies<int>());
  61.                       ^
  62. In file included from interfaces/plugins_wrap.cpp:3684:0:
  63. ./src/SSDPluginFactory.h: At global scope:
  64. ./src/SSDPluginFactory.h:422:29: error: 'INvPlugin' has not been declared
  65.      void (*nvPluginDeleter)(INvPlugin*){[](INvPlugin* ptr) { ptr->destroy(); }};
  66.                              ^
  67. ./src/SSDPluginFactory.h:423:21: error: 'INvPlugin' was not declared in this scope
  68.      std::unique_ptr<INvPlugin, void (*)(INvPlugin*)> mPluginPriorBox{nullptr, nvPluginDeleter};
  69.                      ^
  70. ./src/SSDPluginFactory.h:423:21: note: suggested alternative:
  71. In file included from interfaces/plugins_wrap.cpp:3680:0:
  72. /usr/include/x86_64-linux-gnu/NvInferPlugin.h:100:11: note:   'nvinfer1::plugin::INvPlugin'
  73.      class INvPlugin : public IPlugin
  74.            ^
  75. In file included from interfaces/plugins_wrap.cpp:3684:0:
  76. ./src/SSDPluginFactory.h:423:52: error: template argument 1 is invalid
  77.      std::unique_ptr<INvPlugin, void (*)(INvPlugin*)> mPluginPriorBox{nullptr, nvPluginDeleter};
  78.                                                     ^
  79. ./src/SSDPluginFactory.h:423:52: error: template argument 2 is invalid
  80. ./src/SSDPluginFactory.h:424:21: error: 'INvPlugin' was not declared in this scope
  81.      std::unique_ptr<INvPlugin, void (*)(INvPlugin*)> mPluginDetectionOutput{nullptr, nvPluginDeleter};
  82.                      ^
  83. ./src/SSDPluginFactory.h:424:21: note: suggested alternative:
  84. In file included from interfaces/plugins_wrap.cpp:3680:0:
  85. /usr/include/x86_64-linux-gnu/NvInferPlugin.h:100:11: note:   'nvinfer1::plugin::INvPlugin'
  86.      class INvPlugin : public IPlugin
  87.            ^
  88. In file included from interfaces/plugins_wrap.cpp:3684:0:
  89. ./src/SSDPluginFactory.h:424:52: error: template argument 1 is invalid
  90.      std::unique_ptr<INvPlugin, void (*)(INvPlugin*)> mPluginDetectionOutput{nullptr, nvPluginDeleter};
  91.                                                     ^
  92. ./src/SSDPluginFactory.h:424:52: error: template argument 2 is invalid
  93. ./src/SSDPluginFactory.h:425:21: error: 'INvPlugin' was not declared in this scope
  94.      std::unique_ptr<INvPlugin, void (*)(INvPlugin*)> mPluginConcat{nullptr, nvPluginDeleter};
  95.                      ^
  96. ./src/SSDPluginFactory.h:425:21: note: suggested alternative:
  97. In file included from interfaces/plugins_wrap.cpp:3680:0:
  98. /usr/include/x86_64-linux-gnu/NvInferPlugin.h:100:11: note:   'nvinfer1::plugin::INvPlugin'
  99.      class INvPlugin : public IPlugin
  100.            ^
  101. In file included from interfaces/plugins_wrap.cpp:3684:0:
  102. ./src/SSDPluginFactory.h:425:52: error: template argument 1 is invalid
  103.      std::unique_ptr<INvPlugin, void (*)(INvPlugin*)> mPluginConcat{nullptr, nvPluginDeleter};
  104.                                                     ^
  105. ./src/SSDPluginFactory.h:425:52: error: template argument 2 is invalid
  106. ./src/SSDPluginFactory.h:422:44: error: 'INvPlugin' has not been declared
  107.      void (*nvPluginDeleter)(INvPlugin*){[](INvPlugin* ptr) { ptr->destroy(); }};
  108.                                             ^
  109. ./src/SSDPluginFactory.h: In lambda function:
  110. ./src/SSDPluginFactory.h:422:67: error: request for member 'destroy' in '* ptr', which is of non-class type 'int'
  111.      void (*nvPluginDeleter)(INvPlugin*){[](INvPlugin* ptr) { ptr->destroy(); }};
  112.                                                                    ^
  113. ./src/SSDPluginFactory.h: At global scope:
  114. ./src/SSDPluginFactory.h:423:94: error: cannot convert '<brace-enclosed initializer list>' to 'int' in initialization
  115.      std::unique_ptr<INvPlugin, void (*)(INvPlugin*)> mPluginPriorBox{nullptr, nvPluginDeleter};
  116.                                                                                               ^
  117. ./src/SSDPluginFactory.h:424:101: error: cannot convert '<brace-enclosed initializer list>' to 'int' in initialization
  118.      std::unique_ptr<INvPlugin, void (*)(INvPlugin*)> mPluginDetectionOutput{nullptr, nvPluginDeleter};
  119.                                                                                                      ^
  120. ./src/SSDPluginFactory.h:425:92: error: cannot convert '<brace-enclosed initializer list>' to 'int' in initialization
  121.      std::unique_ptr<INvPlugin, void (*)(INvPlugin*)> mPluginConcat{nullptr, nvPluginDeleter};
  122.                                                                                             ^
  123. ./src/SSDPluginFactory.h: In member function 'virtual nvinfer1::IPlugin* PluginFactory::createPlugin(const char*, const nvinfer1::Weights*, int, nvuffparser::FieldCollection)':
  124. ./src/SSDPluginFactory.h:281:17: error: 'vector' was not declared in this scope
  125.                  vector<float> firstLayerAspectRatios;
  126.                  ^
  127. ./src/SSDPluginFactory.h:281:17: note: suggested alternative:
  128. In file included from /usr/include/c++/5/vector:64:0,
  129.                  from ./src/SSDPluginFactory.h:13,
  130.                  from interfaces/plugins_wrap.cpp:3684:
  131. /usr/include/c++/5/bits/stl_vector.h:214:11: note:   'std::vector'
  132.      class vector : protected _Vector_base<_Tp, _Alloc>
  133.            ^
  134. In file included from interfaces/plugins_wrap.cpp:3684:0:
  135. ./src/SSDPluginFactory.h:281:24: error: expected primary-expression before 'float'
  136.                  vector<float> firstLayerAspectRatios;
  137.                         ^
  138. ./src/SSDPluginFactory.h:285:21: error: 'firstLayerAspectRatios' was not declared in this scope
  139.                      firstLayerAspectRatios.push_back(aspectRatios[i]);
  140.                      ^
  141. ./src/SSDPluginFactory.h:288:17: error: 'GridAnchorParameters' was not declared in this scope
  142.                  GridAnchorParameters boxParams[numLayers];
  143.                  ^
  144. ./src/SSDPluginFactory.h:288:17: note: suggested alternative:
  145. In file included from interfaces/plugins_wrap.cpp:3680:0:
  146. /usr/include/x86_64-linux-gnu/NvInferPlugin.h:220:12: note:   'nvinfer1::plugin::GridAnchorParameters'
  147.      struct GridAnchorParameters
  148.             ^
  149. In file included from interfaces/plugins_wrap.cpp:3684:0:
  150. ./src/SSDPluginFactory.h:292:25: error: 'boxParams' was not declared in this scope
  151.                          boxParams[i] = {minScale, maxScale, firstLayerAspectRatios.data(), (int)firstLayerAspectRatios.size(), fMapShapes[i], fMapShapes[i], {layerVariances[0], layerVariances[1], layerVa
  152.                          ^
  153. ./src/SSDPluginFactory.h:292:61: error: 'firstLayerAspectRatios' was not declared in this scope
  154.                          boxParams[i] = {minScale, maxScale, firstLayerAspectRatios.data(), (int)firstLayerAspectRatios.size(), fMapShapes[i], fMapShapes[i], {layerVariances[0], layerVariances[1], layerVa
  155.                                                              ^
  156. ./src/SSDPluginFactory.h:294:25: error: 'boxParams' was not declared in this scope
  157.                          boxParams[i] = {minScale, maxScale, aspectRatios.data(), (int)aspectRatios.size(), fMapShapes[i], fMapShapes[i], {layerVariances[0], layerVariances[1], layerVariances[2], layerVar
  158.                          ^
  159. ./src/SSDPluginFactory.h:297:51: error: 'INvPlugin' was not declared in this scope
  160.                  mPluginPriorBox = std::unique_ptr<INvPlugin, void(*)(INvPlugin*)>(createSSDAnchorGeneratorPlugin(boxParams, numLayers), nvPluginDeleter);
  161.                                                    ^
  162. ./src/SSDPluginFactory.h:297:51: note: suggested alternative:
  163. In file included from interfaces/plugins_wrap.cpp:3680:0:
  164. /usr/include/x86_64-linux-gnu/NvInferPlugin.h:100:11: note:   'nvinfer1::plugin::INvPlugin'
  165.      class INvPlugin : public IPlugin
  166.            ^
  167. In file included from interfaces/plugins_wrap.cpp:3684:0:
  168. ./src/SSDPluginFactory.h:297:81: error: template argument 1 is invalid
  169.                  mPluginPriorBox = std::unique_ptr<INvPlugin, void(*)(INvPlugin*)>(createSSDAnchorGeneratorPlugin(boxParams, numLayers), nvPluginDeleter);
  170.                                                                                  ^
  171. ./src/SSDPluginFactory.h:297:81: error: template argument 2 is invalid
  172. ./src/SSDPluginFactory.h:297:114: error: 'boxParams' was not declared in this scope
  173.                  mPluginPriorBox = std::unique_ptr<INvPlugin, void(*)(INvPlugin*)>(createSSDAnchorGeneratorPlugin(boxParams, numLayers), nvPluginDeleter);
  174.                                                                                                                   ^
  175. ./src/SSDPluginFactory.h:297:134: error: 'createSSDAnchorGeneratorPlugin' was not declared in this scope
  176.                  mPluginPriorBox = std::unique_ptr<INvPlugin, void(*)(INvPlugin*)>(createSSDAnchorGeneratorPlugin(boxParams, numLayers), nvPluginDeleter);
  177.                                                                                                                                       ^
  178. ./src/SSDPluginFactory.h:297:134: note: suggested alternative:
  179. In file included from interfaces/plugins_wrap.cpp:3680:0:
  180. /usr/include/x86_64-linux-gnu/NvInferPlugin.h:240:29: note:   'nvinfer1::plugin::createSSDAnchorGeneratorPlugin'
  181.      TENSORRTAPI INvPlugin * createSSDAnchorGeneratorPlugin(const void * data, size_t length);
  182.                              ^
  183. In file included from interfaces/plugins_wrap.cpp:3684:0:
  184. ./src/SSDPluginFactory.h:298:40: error: request for member 'get' in '((PluginFactory*)this)->PluginFactory::mPluginPriorBox', which is of non-class type 'int'
  185.                  return mPluginPriorBox.get();
  186.                                         ^
  187. ./src/SSDPluginFactory.h:305:92: error: 'concatAxis' was not declared in this scope
  188.                  mPluginFlattenConcat[i] = std::unique_ptr<FlattenConcat>(new FlattenConcat(concatAxis[i], ignoreBatch[i]));
  189.                                                                                             ^
  190. ./src/SSDPluginFactory.h:305:107: error: 'ignoreBatch' was not declared in this scope
  191.                  mPluginFlattenConcat[i] = std::unique_ptr<FlattenConcat>(new FlattenConcat(concatAxis[i], ignoreBatch[i]));
  192.                                                                                                            ^
  193. ./src/SSDPluginFactory.h:312:49: error: 'INvPlugin' was not declared in this scope
  194.                  mPluginConcat = std::unique_ptr<INvPlugin, void(*)(INvPlugin*)>(createConcatPlugin(2, true), nvPluginDeleter);
  195.                                                  ^
  196. ./src/SSDPluginFactory.h:312:49: note: suggested alternative:
  197. In file included from interfaces/plugins_wrap.cpp:3680:0:
  198. /usr/include/x86_64-linux-gnu/NvInferPlugin.h:100:11: note:   'nvinfer1::plugin::INvPlugin'
  199.      class INvPlugin : public IPlugin
  200.            ^
  201. In file included from interfaces/plugins_wrap.cpp:3684:0:
  202. ./src/SSDPluginFactory.h:312:79: error: template argument 1 is invalid
  203.                  mPluginConcat = std::unique_ptr<INvPlugin, void(*)(INvPlugin*)>(createConcatPlugin(2, true), nvPluginDeleter);
  204.                                                                                ^
  205. ./src/SSDPluginFactory.h:312:79: error: template argument 2 is invalid
  206. ./src/SSDPluginFactory.h:312:107: error: 'createConcatPlugin' was not declared in this scope
  207.                  mPluginConcat = std::unique_ptr<INvPlugin, void(*)(INvPlugin*)>(createConcatPlugin(2, true), nvPluginDeleter);
  208.                                                                                                            ^
  209. ./src/SSDPluginFactory.h:312:107: note: suggested alternative:
  210. In file included from interfaces/plugins_wrap.cpp:3680:0:
  211. /usr/include/x86_64-linux-gnu/NvInferPlugin.h:294:29: note:   'nvinfer1::plugin::createConcatPlugin'
  212.      TENSORRTAPI INvPlugin * createConcatPlugin(const void * data, size_t length);
  213.                              ^
  214. In file included from interfaces/plugins_wrap.cpp:3684:0:
  215. ./src/SSDPluginFactory.h:313:38: error: request for member 'get' in '((PluginFactory*)this)->PluginFactory::mPluginConcat', which is of non-class type 'int'
  216.                  return mPluginConcat.get();
  217.                                       ^
  218. ./src/SSDPluginFactory.h:327:25: error: 'detectionOutputParam' was not declared in this scope
  219.                          detectionOutputParam.nmsThreshold =(float)(*(static_cast<const double*>(fields[i].data)));
  220.                          ^
  221. ./src/SSDPluginFactory.h:332:25: error: 'detectionOutputParam' was not declared in this scope
  222.                          detectionOutputParam.numClasses = (int)(*(static_cast<const int*>(fields[i].data)));
  223.                          ^
  224. ./src/SSDPluginFactory.h:337:25: error: 'detectionOutputParam' was not declared in this scope
  225.                          detectionOutputParam.topK = (int)(*(static_cast<const int*>(fields[i].data)));
  226.                          ^
  227. ./src/SSDPluginFactory.h:343:29: error: 'detectionOutputParam' was not declared in this scope
  228.                              detectionOutputParam.confSigmoid = true;
  229.                              ^
  230. ./src/SSDPluginFactory.h:348:25: error: 'detectionOutputParam' was not declared in this scope
  231.                          detectionOutputParam.keepTopK = (int)(*(static_cast<const int*>(fields[i].data)));
  232.                          ^
  233. ./src/SSDPluginFactory.h:352:25: error: 'detectionOutputParam' was not declared in this scope
  234.                          detectionOutputParam.confidenceThreshold = (float)(*(static_cast<const double*>(fields[i].data)));
  235.                          ^
  236. ./src/SSDPluginFactory.h:355:58: error: 'INvPlugin' was not declared in this scope
  237.                  mPluginDetectionOutput = std::unique_ptr<INvPlugin, void(*)(INvPlugin*)>(createSSDDetectionOutputPlugin(detectionOutputParam), nvPluginDeleter);
  238.                                                           ^
  239. ./src/SSDPluginFactory.h:355:58: note: suggested alternative:
  240. In file included from interfaces/plugins_wrap.cpp:3680:0:
  241. /usr/include/x86_64-linux-gnu/NvInferPlugin.h:100:11: note:   'nvinfer1::plugin::INvPlugin'
  242.      class INvPlugin : public IPlugin
  243.            ^
  244. In file included from interfaces/plugins_wrap.cpp:3684:0:
  245. ./src/SSDPluginFactory.h:355:88: error: template argument 1 is invalid
  246.                  mPluginDetectionOutput = std::unique_ptr<INvPlugin, void(*)(INvPlugin*)>(createSSDDetectionOutputPlugin(detectionOutputParam), nvPluginDeleter);
  247.                                                                                         ^
  248. ./src/SSDPluginFactory.h:355:88: error: template argument 2 is invalid
  249. ./src/SSDPluginFactory.h:355:121: error: 'detectionOutputParam' was not declared in this scope
  250.                  mPluginDetectionOutput = std::unique_ptr<INvPlugin, void(*)(INvPlugin*)>(createSSDDetectionOutputPlugin(detectionOutputParam), nvPluginDeleter);
  251.                                                                                                                          ^
  252. ./src/SSDPluginFactory.h:355:141: error: 'createSSDDetectionOutputPlugin' was not declared in this scope
  253.                  mPluginDetectionOutput = std::unique_ptr<INvPlugin, void(*)(INvPlugin*)>(createSSDDetectionOutputPlugin(detectionOutputParam), nvPluginDeleter);
  254.                                                                                                                                              ^
  255. ./src/SSDPluginFactory.h:355:141: note: suggested alternative:
  256. In file included from interfaces/plugins_wrap.cpp:3680:0:
  257. /usr/include/x86_64-linux-gnu/NvInferPlugin.h:286:29: note:   'nvinfer1::plugin::createSSDDetectionOutputPlugin'
  258.      TENSORRTAPI INvPlugin * createSSDDetectionOutputPlugin(const void * data, size_t length);
  259.                              ^
  260. In file included from interfaces/plugins_wrap.cpp:3684:0:
  261. ./src/SSDPluginFactory.h:356:47: error: request for member 'get' in '((PluginFactory*)this)->PluginFactory::mPluginDetectionOutput', which is of non-class type 'int'
  262.                  return mPluginDetectionOutput.get();
  263.                                                ^
  264. ./src/SSDPluginFactory.h: In member function 'virtual nvinfer1::IPlugin* PluginFactory::createPlugin(const char*, const void*, size_t)':
  265. ./src/SSDPluginFactory.h:372:47: error: 'INvPlugin' was not declared in this scope
  266.              mPluginPriorBox = std::unique_ptr<INvPlugin, void (*)(INvPlugin*)>(createSSDAnchorGeneratorPlugin(serialData, serialLength), nvPluginDeleter);
  267.                                                ^
  268. ./src/SSDPluginFactory.h:372:47: note: suggested alternative:
  269. In file included from interfaces/plugins_wrap.cpp:3680:0:
  270. /usr/include/x86_64-linux-gnu/NvInferPlugin.h:100:11: note:   'nvinfer1::plugin::INvPlugin'
  271.      class INvPlugin : public IPlugin
  272.            ^
  273. In file included from interfaces/plugins_wrap.cpp:3684:0:
  274. ./src/SSDPluginFactory.h:372:78: error: template argument 1 is invalid
  275.              mPluginPriorBox = std::unique_ptr<INvPlugin, void (*)(INvPlugin*)>(createSSDAnchorGeneratorPlugin(serialData, serialLength), nvPluginDeleter);
  276.                                                                               ^
  277. ./src/SSDPluginFactory.h:372:78: error: template argument 2 is invalid
  278. ./src/SSDPluginFactory.h:372:135: error: 'createSSDAnchorGeneratorPlugin' was not declared in this scope
  279.              mPluginPriorBox = std::unique_ptr<INvPlugin, void (*)(INvPlugin*)>(createSSDAnchorGeneratorPlugin(serialData, serialLength), nvPluginDeleter);
  280.                                                                                                                                        ^
  281. ./src/SSDPluginFactory.h:372:135: note: suggested alternative:
  282. In file included from interfaces/plugins_wrap.cpp:3680:0:
  283. /usr/include/x86_64-linux-gnu/NvInferPlugin.h:240:29: note:   'nvinfer1::plugin::createSSDAnchorGeneratorPlugin'
  284.      TENSORRTAPI INvPlugin * createSSDAnchorGeneratorPlugin(const void * data, size_t length);
  285.                              ^
  286. In file included from interfaces/plugins_wrap.cpp:3684:0:
  287. ./src/SSDPluginFactory.h:373:36: error: request for member 'get' in '((PluginFactory*)this)->PluginFactory::mPluginPriorBox', which is of non-class type 'int'
  288.              return mPluginPriorBox.get();
  289.                                     ^
  290. ./src/SSDPluginFactory.h:385:45: error: 'INvPlugin' was not declared in this scope
  291.              mPluginConcat = std::unique_ptr<INvPlugin, void (*)(INvPlugin*)>(createConcatPlugin(serialData, serialLength), nvPluginDeleter);
  292.                                              ^
  293. ./src/SSDPluginFactory.h:385:45: note: suggested alternative:
  294. In file included from interfaces/plugins_wrap.cpp:3680:0:
  295. /usr/include/x86_64-linux-gnu/NvInferPlugin.h:100:11: note:   'nvinfer1::plugin::INvPlugin'
  296.      class INvPlugin : public IPlugin
  297.            ^
  298. In file included from interfaces/plugins_wrap.cpp:3684:0:
  299. ./src/SSDPluginFactory.h:385:76: error: template argument 1 is invalid
  300.              mPluginConcat = std::unique_ptr<INvPlugin, void (*)(INvPlugin*)>(createConcatPlugin(serialData, serialLength), nvPluginDeleter);
  301.                                                                             ^
  302. ./src/SSDPluginFactory.h:385:76: error: template argument 2 is invalid
  303. ./src/SSDPluginFactory.h:385:121: error: 'createConcatPlugin' was not declared in this scope
  304.              mPluginConcat = std::unique_ptr<INvPlugin, void (*)(INvPlugin*)>(createConcatPlugin(serialData, serialLength), nvPluginDeleter);
  305.                                                                                                                          ^
  306. ./src/SSDPluginFactory.h:385:121: note: suggested alternative:
  307. In file included from interfaces/plugins_wrap.cpp:3680:0:
  308. /usr/include/x86_64-linux-gnu/NvInferPlugin.h:294:29: note:   'nvinfer1::plugin::createConcatPlugin'
  309.      TENSORRTAPI INvPlugin * createConcatPlugin(const void * data, size_t length);
  310.                              ^
  311. In file included from interfaces/plugins_wrap.cpp:3684:0:
  312. ./src/SSDPluginFactory.h:386:34: error: request for member 'get' in '((PluginFactory*)this)->PluginFactory::mPluginConcat', which is of non-class type 'int'
  313.              return mPluginConcat.get();
  314.                                   ^
  315. ./src/SSDPluginFactory.h:391:54: error: 'INvPlugin' was not declared in this scope
  316.              mPluginDetectionOutput = std::unique_ptr<INvPlugin, void (*)(INvPlugin*)>(createSSDDetectionOutputPlugin(serialData, serialLength), nvPluginDeleter);
  317.                                                       ^
  318. ./src/SSDPluginFactory.h:391:54: note: suggested alternative:
  319. In file included from interfaces/plugins_wrap.cpp:3680:0:
  320. /usr/include/x86_64-linux-gnu/NvInferPlugin.h:100:11: note:   'nvinfer1::plugin::INvPlugin'
  321.      class INvPlugin : public IPlugin
  322.            ^
  323. In file included from interfaces/plugins_wrap.cpp:3684:0:
  324. ./src/SSDPluginFactory.h:391:85: error: template argument 1 is invalid
  325.              mPluginDetectionOutput = std::unique_ptr<INvPlugin, void (*)(INvPlugin*)>(createSSDDetectionOutputPlugin(serialData, serialLength), nvPluginDeleter);
  326.                                                                                      ^
  327. ./src/SSDPluginFactory.h:391:85: error: template argument 2 is invalid
  328. ./src/SSDPluginFactory.h:391:142: error: 'createSSDDetectionOutputPlugin' was not declared in this scope
  329.              mPluginDetectionOutput = std::unique_ptr<INvPlugin, void (*)(INvPlugin*)>(createSSDDetectionOutputPlugin(serialData, serialLength), nvPluginDeleter);
  330.                                                                                                                                               ^
  331. ./src/SSDPluginFactory.h:391:142: note: suggested alternative:
  332. In file included from interfaces/plugins_wrap.cpp:3680:0:
  333. /usr/include/x86_64-linux-gnu/NvInferPlugin.h:286:29: note:   'nvinfer1::plugin::createSSDDetectionOutputPlugin'
  334.      TENSORRTAPI INvPlugin * createSSDDetectionOutputPlugin(const void * data, size_t length);
  335.                              ^
  336. In file included from interfaces/plugins_wrap.cpp:3684:0:
  337. ./src/SSDPluginFactory.h:392:43: error: request for member 'get' in '((PluginFactory*)this)->PluginFactory::mPluginDetectionOutput', which is of non-class type 'int'
  338.              return mPluginDetectionOutput.get();
  339.                                            ^
  340. ./src/SSDPluginFactory.h: In member function 'void PluginFactory::destroyPlugin()':
  341. ./src/SSDPluginFactory.h:417:23: error: request for member 'reset' in '((PluginFactory*)this)->PluginFactory::mPluginConcat', which is of non-class type 'int'
  342.          mPluginConcat.reset();
  343.                        ^
  344. ./src/SSDPluginFactory.h:418:25: error: request for member 'reset' in '((PluginFactory*)this)->PluginFactory::mPluginPriorBox', which is of non-class type 'int'
  345.          mPluginPriorBox.reset();
  346.                          ^
  347. ./src/SSDPluginFactory.h:419:32: error: request for member 'reset' in '((PluginFactory*)this)->PluginFactory::mPluginDetectionOutput', which is of non-class type 'int'
  348.          mPluginDetectionOutput.reset();
  349.                                 ^
  350. interfaces/plugins_wrap.cpp: In function 'PyObject* _wrap_PluginFactory_nvPluginDeleter_set(PyObject*, PyObject*)':
  351. interfaces/plugins_wrap.cpp:4882:16: error: 'INvPlugin' was not declared in this scope
  352.    void (*arg2)(INvPlugin *) = (void (*)(INvPlugin *)) 0 ;
  353.                 ^
  354. interfaces/plugins_wrap.cpp:4882:16: note: suggested alternative:
  355. In file included from interfaces/plugins_wrap.cpp:3680:0:
  356. /usr/include/x86_64-linux-gnu/NvInferPlugin.h:100:11: note:   'nvinfer1::plugin::INvPlugin'
  357.      class INvPlugin : public IPlugin
  358.            ^
  359. interfaces/plugins_wrap.cpp:4882:27: error: expected primary-expression before ')' token
  360.    void (*arg2)(INvPlugin *) = (void (*)(INvPlugin *)) 0 ;
  361.                            ^
  362. interfaces/plugins_wrap.cpp:4882:29: error: expected ',' or ';' before '=' token
  363.    void (*arg2)(INvPlugin *) = (void (*)(INvPlugin *)) 0 ;
  364.                              ^
  365. interfaces/plugins_wrap.cpp:4899:37: error: invalid conversion from 'void*' to 'void (*)(int*)' [-fpermissive]
  366.    if (arg1) (arg1)->nvPluginDeleter = arg2;
  367.                                      ^
  368. interfaces/plugins_wrap.cpp: In function 'PyObject* _wrap_PluginFactory_nvPluginDeleter_get(PyObject*, PyObject*)':
  369. interfaces/plugins_wrap.cpp:4912:18: error: 'INvPlugin' was not declared in this scope
  370.    void (*result)(INvPlugin *) = 0 ;
  371.                   ^
  372. interfaces/plugins_wrap.cpp:4912:18: note: suggested alternative:
  373. In file included from interfaces/plugins_wrap.cpp:3680:0:
  374. /usr/include/x86_64-linux-gnu/NvInferPlugin.h:100:11: note:   'nvinfer1::plugin::INvPlugin'
  375.      class INvPlugin : public IPlugin
  376.            ^
  377. interfaces/plugins_wrap.cpp:4912:29: error: expected primary-expression before ')' token
  378.    void (*result)(INvPlugin *) = 0 ;
  379.                              ^
  380. interfaces/plugins_wrap.cpp:4912:31: error: expected ',' or ';' before '=' token
  381.    void (*result)(INvPlugin *) = 0 ;
  382.                                ^
  383. interfaces/plugins_wrap.cpp:4920:13: error: expected primary-expression before 'void'
  384.    result = (void (*)(INvPlugin *)) ((arg1)->nvPluginDeleter);
  385.              ^
  386. interfaces/plugins_wrap.cpp:4920:13: error: expected ')' before 'void'
  387. interfaces/plugins_wrap.cpp: In function 'PyObject* _wrap_PluginFactory_mPluginPriorBox_set(PyObject*, PyObject*)':
  388. interfaces/plugins_wrap.cpp:4931:20: error: 'INvPlugin' was not declared in this scope
  389.    std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > arg2 ;
  390.                     ^
  391. interfaces/plugins_wrap.cpp:4931:20: note: suggested alternative:
  392. In file included from interfaces/plugins_wrap.cpp:3680:0:
  393. /usr/include/x86_64-linux-gnu/NvInferPlugin.h:100:11: note:   'nvinfer1::plugin::INvPlugin'
  394.      class INvPlugin : public IPlugin
  395.            ^
  396. interfaces/plugins_wrap.cpp:4931:52: error: template argument 1 is invalid
  397.    std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > arg2 ;
  398.                                                     ^
  399. interfaces/plugins_wrap.cpp:4931:52: error: template argument 2 is invalid
  400. interfaces/plugins_wrap.cpp:4952:24: error: the value of 'INvPlugin' is not usable in a constant expression
  401.        std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * temp = reinterpret_cast< std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * >(argp2);
  402.                         ^
  403. interfaces/plugins_wrap.cpp:4931:20: note: 'INvPlugin' was not declared 'constexpr'
  404.    std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > arg2 ;
  405.                     ^
  406. interfaces/plugins_wrap.cpp:4952:56: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Dp> class std::unique_ptr'
  407.        std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * temp = reinterpret_cast< std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * >(argp2);
  408.                                                         ^
  409. interfaces/plugins_wrap.cpp:4952:56: note:   expected a type, got 'INvPlugin'
  410. interfaces/plugins_wrap.cpp:4952:56: error: template argument 2 is invalid
  411. interfaces/plugins_wrap.cpp:4952:102: error: the value of 'INvPlugin' is not usable in a constant expression
  412.        std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * temp = reinterpret_cast< std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * >(argp2);
  413.                                                                                                       ^
  414. interfaces/plugins_wrap.cpp:4931:20: note: 'INvPlugin' was not declared 'constexpr'
  415.    std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > arg2 ;
  416.                     ^
  417. interfaces/plugins_wrap.cpp:4952:134: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Dp> class std::unique_ptr'
  418.        std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * temp = reinterpret_cast< std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * >(argp2);
  419.                                                                                                                                       ^
  420. interfaces/plugins_wrap.cpp:4952:134: note:   expected a type, got 'INvPlugin'
  421. interfaces/plugins_wrap.cpp:4952:134: error: template argument 2 is invalid
  422. interfaces/plugins_wrap.cpp:4952:136: error: expected '>' before '*' token
  423.        std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * temp = reinterpret_cast< std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * >(argp2);
  424.                                                                                                                                         ^
  425. interfaces/plugins_wrap.cpp:4952:136: error: expected '(' before '*' token
  426. interfaces/plugins_wrap.cpp:4952:138: error: expected primary-expression before '>' token
  427.        std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * temp = reinterpret_cast< std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * >(argp2);
  428.                                                                                                                                           ^
  429. interfaces/plugins_wrap.cpp:4952:146: error: expected ')' before ';' token
  430.        std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * temp = reinterpret_cast< std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * >(argp2);
  431.                                                                                                                                                   ^
  432. interfaces/plugins_wrap.cpp: In function 'PyObject* _wrap_PluginFactory_mPluginPriorBox_get(PyObject*, PyObject*)':
  433. interfaces/plugins_wrap.cpp:4970:20: error: 'INvPlugin' was not declared in this scope
  434.    std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > result;
  435.                     ^
  436. interfaces/plugins_wrap.cpp:4970:20: note: suggested alternative:
  437. In file included from interfaces/plugins_wrap.cpp:3680:0:
  438. /usr/include/x86_64-linux-gnu/NvInferPlugin.h:100:11: note:   'nvinfer1::plugin::INvPlugin'
  439.      class INvPlugin : public IPlugin
  440.            ^
  441. interfaces/plugins_wrap.cpp:4970:52: error: template argument 1 is invalid
  442.    std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > result;
  443.                                                     ^
  444. interfaces/plugins_wrap.cpp:4970:52: error: template argument 2 is invalid
  445. interfaces/plugins_wrap.cpp:4979:56: error: the value of 'INvPlugin' is not usable in a constant expression
  446.    resultobj = SWIG_NewPointerObj((new std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >(static_cast< const std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >& >(result))), SWIGTYPE_p_std__unique_ptrT_IN
  447.                                                         ^
  448. interfaces/plugins_wrap.cpp:1187:89: note: in definition of macro 'SWIG_NewPointerObj'
  449.  #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
  450.                                                                                          ^
  451. interfaces/plugins_wrap.cpp:4970:20: note: 'INvPlugin' was not declared 'constexpr'
  452.    std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > result;
  453.                     ^
  454. interfaces/plugins_wrap.cpp:4979:88: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Dp> class std::unique_ptr'
  455.    resultobj = SWIG_NewPointerObj((new std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >(static_cast< const std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >& >(result))), SWIGTYPE_p_std__unique_ptrT_IN
  456.                                                                                         ^
  457. interfaces/plugins_wrap.cpp:1187:89: note: in definition of macro 'SWIG_NewPointerObj'
  458.  #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
  459.                                                                                          ^
  460. interfaces/plugins_wrap.cpp:4979:88: note:   expected a type, got 'INvPlugin'
  461.    resultobj = SWIG_NewPointerObj((new std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >(static_cast< const std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >& >(result))), SWIGTYPE_p_std__unique_ptrT_IN
  462.                                                                                         ^
  463. interfaces/plugins_wrap.cpp:1187:89: note: in definition of macro 'SWIG_NewPointerObj'
  464.  #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
  465.                                                                                          ^
  466. interfaces/plugins_wrap.cpp:4979:88: error: template argument 2 is invalid
  467.    resultobj = SWIG_NewPointerObj((new std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >(static_cast< const std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >& >(result))), SWIGTYPE_p_std__unique_ptrT_IN
  468.                                                                                         ^
  469. interfaces/plugins_wrap.cpp:1187:89: note: in definition of macro 'SWIG_NewPointerObj'
  470.  #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
  471.                                                                                          ^
  472. interfaces/plugins_wrap.cpp:4979:126: error: the value of 'INvPlugin' is not usable in a constant expression
  473.    resultobj = SWIG_NewPointerObj((new std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >(static_cast< const std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >& >(result))), SWIGTYPE_p_std__unique_ptrT_IN
  474.                                                                                                                               ^
  475. interfaces/plugins_wrap.cpp:1187:89: note: in definition of macro 'SWIG_NewPointerObj'
  476.  #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
  477.                                                                                          ^
  478. interfaces/plugins_wrap.cpp:4970:20: note: 'INvPlugin' was not declared 'constexpr'
  479.    std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > result;
  480.                     ^
  481. interfaces/plugins_wrap.cpp:4979:158: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Dp> class std::unique_ptr'
  482.    resultobj = SWIG_NewPointerObj((new std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >(static_cast< const std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >& >(result))), SWIGTYPE_p_std__unique_ptrT_IN
  483.                                                                                                                                                               ^
  484. interfaces/plugins_wrap.cpp:1187:89: note: in definition of macro 'SWIG_NewPointerObj'
  485.  #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
  486.                                                                                          ^
  487. interfaces/plugins_wrap.cpp:4979:158: note:   expected a type, got 'INvPlugin'
  488.    resultobj = SWIG_NewPointerObj((new std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >(static_cast< const std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >& >(result))), SWIGTYPE_p_std__unique_ptrT_IN
  489.                                                                                                                                                               ^
  490. interfaces/plugins_wrap.cpp:1187:89: note: in definition of macro 'SWIG_NewPointerObj'
  491.  #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
  492.                                                                                          ^
  493. interfaces/plugins_wrap.cpp:4979:158: error: template argument 2 is invalid
  494.    resultobj = SWIG_NewPointerObj((new std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >(static_cast< const std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >& >(result))), SWIGTYPE_p_std__unique_ptrT_IN
  495.                                                                                                                                                               ^
  496. interfaces/plugins_wrap.cpp:1187:89: note: in definition of macro 'SWIG_NewPointerObj'
  497.  #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
  498.                                                                                          ^
  499. interfaces/plugins_wrap.cpp:4979:159: error: expected '>' before '&' token
  500.    resultobj = SWIG_NewPointerObj((new std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >(static_cast< const std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >& >(result))), SWIGTYPE_p_std__unique_ptrT_IN
  501.                                                                                                                                                                ^
  502. interfaces/plugins_wrap.cpp:1187:89: note: in definition of macro 'SWIG_NewPointerObj'
  503.  #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
  504.                                                                                          ^
  505. interfaces/plugins_wrap.cpp:4979:159: error: expected '(' before '&' token
  506.    resultobj = SWIG_NewPointerObj((new std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >(static_cast< const std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >& >(result))), SWIGTYPE_p_std__unique_ptrT_IN
  507.                                                                                                                                                                ^
  508. interfaces/plugins_wrap.cpp:1187:89: note: in definition of macro 'SWIG_NewPointerObj'
  509.  #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
  510.                                                                                          ^
  511. interfaces/plugins_wrap.cpp:4979:161: error: expected primary-expression before '>' token
  512.    resultobj = SWIG_NewPointerObj((new std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >(static_cast< const std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >& >(result))), SWIGTYPE_p_std__unique_ptrT_IN
  513.                                                                                                                                                                  ^
  514. interfaces/plugins_wrap.cpp:1187:89: note: in definition of macro 'SWIG_NewPointerObj'
  515.  #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
  516.                                                                                          ^
  517. interfaces/plugins_wrap.cpp: In function 'PyObject* _wrap_PluginFactory_mPluginDetectionOutput_set(PyObject*, PyObject*)':
  518. interfaces/plugins_wrap.cpp:4989:20: error: 'INvPlugin' was not declared in this scope
  519.    std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > arg2 ;
  520.                     ^
  521. interfaces/plugins_wrap.cpp:4989:20: note: suggested alternative:
  522. In file included from interfaces/plugins_wrap.cpp:3680:0:
  523. /usr/include/x86_64-linux-gnu/NvInferPlugin.h:100:11: note:   'nvinfer1::plugin::INvPlugin'
  524.      class INvPlugin : public IPlugin
  525.            ^
  526. interfaces/plugins_wrap.cpp:4989:52: error: template argument 1 is invalid
  527.    std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > arg2 ;
  528.                                                     ^
  529. interfaces/plugins_wrap.cpp:4989:52: error: template argument 2 is invalid
  530. interfaces/plugins_wrap.cpp:5010:24: error: the value of 'INvPlugin' is not usable in a constant expression
  531.        std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * temp = reinterpret_cast< std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * >(argp2);
  532.                         ^
  533. interfaces/plugins_wrap.cpp:4989:20: note: 'INvPlugin' was not declared 'constexpr'
  534.    std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > arg2 ;
  535.                     ^
  536. interfaces/plugins_wrap.cpp:5010:56: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Dp> class std::unique_ptr'
  537.        std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * temp = reinterpret_cast< std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * >(argp2);
  538.                                                         ^
  539. interfaces/plugins_wrap.cpp:5010:56: note:   expected a type, got 'INvPlugin'
  540. interfaces/plugins_wrap.cpp:5010:56: error: template argument 2 is invalid
  541. interfaces/plugins_wrap.cpp:5010:102: error: the value of 'INvPlugin' is not usable in a constant expression
  542.        std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * temp = reinterpret_cast< std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * >(argp2);
  543.                                                                                                       ^
  544. interfaces/plugins_wrap.cpp:4989:20: note: 'INvPlugin' was not declared 'constexpr'
  545.    std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > arg2 ;
  546.                     ^
  547. interfaces/plugins_wrap.cpp:5010:134: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Dp> class std::unique_ptr'
  548.        std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * temp = reinterpret_cast< std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * >(argp2);
  549.                                                                                                                                       ^
  550. interfaces/plugins_wrap.cpp:5010:134: note:   expected a type, got 'INvPlugin'
  551. interfaces/plugins_wrap.cpp:5010:134: error: template argument 2 is invalid
  552. interfaces/plugins_wrap.cpp:5010:136: error: expected '>' before '*' token
  553.        std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * temp = reinterpret_cast< std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * >(argp2);
  554.                                                                                                                                         ^
  555. interfaces/plugins_wrap.cpp:5010:136: error: expected '(' before '*' token
  556. interfaces/plugins_wrap.cpp:5010:138: error: expected primary-expression before '>' token
  557.        std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * temp = reinterpret_cast< std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * >(argp2);
  558.                                                                                                                                           ^
  559. interfaces/plugins_wrap.cpp:5010:146: error: expected ')' before ';' token
  560.        std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * temp = reinterpret_cast< std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * >(argp2);
  561.                                                                                                                                                   ^
  562. interfaces/plugins_wrap.cpp: In function 'PyObject* _wrap_PluginFactory_mPluginDetectionOutput_get(PyObject*, PyObject*)':
  563. interfaces/plugins_wrap.cpp:5028:20: error: 'INvPlugin' was not declared in this scope
  564.    std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > result;
  565.                     ^
  566. interfaces/plugins_wrap.cpp:5028:20: note: suggested alternative:
  567. In file included from interfaces/plugins_wrap.cpp:3680:0:
  568. /usr/include/x86_64-linux-gnu/NvInferPlugin.h:100:11: note:   'nvinfer1::plugin::INvPlugin'
  569.      class INvPlugin : public IPlugin
  570.            ^
  571. interfaces/plugins_wrap.cpp:5028:52: error: template argument 1 is invalid
  572.    std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > result;
  573.                                                     ^
  574. interfaces/plugins_wrap.cpp:5028:52: error: template argument 2 is invalid
  575. interfaces/plugins_wrap.cpp:5037:56: error: the value of 'INvPlugin' is not usable in a constant expression
  576.    resultobj = SWIG_NewPointerObj((new std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >(static_cast< const std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >& >(result))), SWIGTYPE_p_std__unique_ptrT_IN
  577.                                                         ^
  578. interfaces/plugins_wrap.cpp:1187:89: note: in definition of macro 'SWIG_NewPointerObj'
  579.  #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
  580.                                                                                          ^
  581. interfaces/plugins_wrap.cpp:5028:20: note: 'INvPlugin' was not declared 'constexpr'
  582.    std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > result;
  583.                     ^
  584. interfaces/plugins_wrap.cpp:5037:88: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Dp> class std::unique_ptr'
  585.    resultobj = SWIG_NewPointerObj((new std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >(static_cast< const std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >& >(result))), SWIGTYPE_p_std__unique_ptrT_IN
  586.                                                                                         ^
  587. interfaces/plugins_wrap.cpp:1187:89: note: in definition of macro 'SWIG_NewPointerObj'
  588.  #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
  589.                                                                                          ^
  590. interfaces/plugins_wrap.cpp:5037:88: note:   expected a type, got 'INvPlugin'
  591.    resultobj = SWIG_NewPointerObj((new std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >(static_cast< const std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >& >(result))), SWIGTYPE_p_std__unique_ptrT_IN
  592.                                                                                         ^
  593. interfaces/plugins_wrap.cpp:1187:89: note: in definition of macro 'SWIG_NewPointerObj'
  594.  #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
  595.                                                                                          ^
  596. interfaces/plugins_wrap.cpp:5037:88: error: template argument 2 is invalid
  597.    resultobj = SWIG_NewPointerObj((new std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >(static_cast< const std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >& >(result))), SWIGTYPE_p_std__unique_ptrT_IN
  598.                                                                                         ^
  599. interfaces/plugins_wrap.cpp:1187:89: note: in definition of macro 'SWIG_NewPointerObj'
  600.  #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
  601.                                                                                          ^
  602. interfaces/plugins_wrap.cpp:5037:126: error: the value of 'INvPlugin' is not usable in a constant expression
  603.    resultobj = SWIG_NewPointerObj((new std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >(static_cast< const std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >& >(result))), SWIGTYPE_p_std__unique_ptrT_IN
  604.                                                                                                                               ^
  605. interfaces/plugins_wrap.cpp:1187:89: note: in definition of macro 'SWIG_NewPointerObj'
  606.  #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
  607.                                                                                          ^
  608. interfaces/plugins_wrap.cpp:5028:20: note: 'INvPlugin' was not declared 'constexpr'
  609.    std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > result;
  610.                     ^
  611. interfaces/plugins_wrap.cpp:5037:158: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Dp> class std::unique_ptr'
  612.    resultobj = SWIG_NewPointerObj((new std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >(static_cast< const std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >& >(result))), SWIGTYPE_p_std__unique_ptrT_IN
  613.                                                                                                                                                               ^
  614. interfaces/plugins_wrap.cpp:1187:89: note: in definition of macro 'SWIG_NewPointerObj'
  615.  #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
  616.                                                                                          ^
  617. interfaces/plugins_wrap.cpp:5037:158: note:   expected a type, got 'INvPlugin'
  618.    resultobj = SWIG_NewPointerObj((new std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >(static_cast< const std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >& >(result))), SWIGTYPE_p_std__unique_ptrT_IN
  619.                                                                                                                                                               ^
  620. interfaces/plugins_wrap.cpp:1187:89: note: in definition of macro 'SWIG_NewPointerObj'
  621.  #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
  622.                                                                                          ^
  623. interfaces/plugins_wrap.cpp:5037:158: error: template argument 2 is invalid
  624.    resultobj = SWIG_NewPointerObj((new std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >(static_cast< const std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >& >(result))), SWIGTYPE_p_std__unique_ptrT_IN
  625.                                                                                                                                                               ^
  626. interfaces/plugins_wrap.cpp:1187:89: note: in definition of macro 'SWIG_NewPointerObj'
  627.  #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
  628.                                                                                          ^
  629. interfaces/plugins_wrap.cpp:5037:159: error: expected '>' before '&' token
  630.    resultobj = SWIG_NewPointerObj((new std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >(static_cast< const std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >& >(result))), SWIGTYPE_p_std__unique_ptrT_IN
  631.                                                                                                                                                                ^
  632. interfaces/plugins_wrap.cpp:1187:89: note: in definition of macro 'SWIG_NewPointerObj'
  633.  #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
  634.                                                                                          ^
  635. interfaces/plugins_wrap.cpp:5037:159: error: expected '(' before '&' token
  636.    resultobj = SWIG_NewPointerObj((new std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >(static_cast< const std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >& >(result))), SWIGTYPE_p_std__unique_ptrT_IN
  637.                                                                                                                                                                ^
  638. interfaces/plugins_wrap.cpp:1187:89: note: in definition of macro 'SWIG_NewPointerObj'
  639.  #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
  640.                                                                                          ^
  641. interfaces/plugins_wrap.cpp:5037:161: error: expected primary-expression before '>' token
  642.    resultobj = SWIG_NewPointerObj((new std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >(static_cast< const std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >& >(result))), SWIGTYPE_p_std__unique_ptrT_IN
  643.                                                                                                                                                                  ^
  644. interfaces/plugins_wrap.cpp:1187:89: note: in definition of macro 'SWIG_NewPointerObj'
  645.  #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
  646.                                                                                          ^
  647. interfaces/plugins_wrap.cpp: In function 'PyObject* _wrap_PluginFactory_mPluginConcat_set(PyObject*, PyObject*)':
  648. interfaces/plugins_wrap.cpp:5047:20: error: 'INvPlugin' was not declared in this scope
  649.    std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > arg2 ;
  650.                     ^
  651. interfaces/plugins_wrap.cpp:5047:20: note: suggested alternative:
  652. In file included from interfaces/plugins_wrap.cpp:3680:0:
  653. /usr/include/x86_64-linux-gnu/NvInferPlugin.h:100:11: note:   'nvinfer1::plugin::INvPlugin'
  654.      class INvPlugin : public IPlugin
  655.            ^
  656. interfaces/plugins_wrap.cpp:5047:52: error: template argument 1 is invalid
  657.    std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > arg2 ;
  658.                                                     ^
  659. interfaces/plugins_wrap.cpp:5047:52: error: template argument 2 is invalid
  660. interfaces/plugins_wrap.cpp:5068:24: error: the value of 'INvPlugin' is not usable in a constant expression
  661.        std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * temp = reinterpret_cast< std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * >(argp2);
  662.                         ^
  663. interfaces/plugins_wrap.cpp:5047:20: note: 'INvPlugin' was not declared 'constexpr'
  664.    std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > arg2 ;
  665.                     ^
  666. interfaces/plugins_wrap.cpp:5068:56: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Dp> class std::unique_ptr'
  667.        std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * temp = reinterpret_cast< std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * >(argp2);
  668.                                                         ^
  669. interfaces/plugins_wrap.cpp:5068:56: note:   expected a type, got 'INvPlugin'
  670. interfaces/plugins_wrap.cpp:5068:56: error: template argument 2 is invalid
  671. interfaces/plugins_wrap.cpp:5068:102: error: the value of 'INvPlugin' is not usable in a constant expression
  672.        std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * temp = reinterpret_cast< std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * >(argp2);
  673.                                                                                                       ^
  674. interfaces/plugins_wrap.cpp:5047:20: note: 'INvPlugin' was not declared 'constexpr'
  675.    std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > arg2 ;
  676.                     ^
  677. interfaces/plugins_wrap.cpp:5068:134: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Dp> class std::unique_ptr'
  678.        std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * temp = reinterpret_cast< std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * >(argp2);
  679.                                                                                                                                       ^
  680. interfaces/plugins_wrap.cpp:5068:134: note:   expected a type, got 'INvPlugin'
  681. interfaces/plugins_wrap.cpp:5068:134: error: template argument 2 is invalid
  682. interfaces/plugins_wrap.cpp:5068:136: error: expected '>' before '*' token
  683.        std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * temp = reinterpret_cast< std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * >(argp2);
  684.                                                                                                                                         ^
  685. interfaces/plugins_wrap.cpp:5068:136: error: expected '(' before '*' token
  686. interfaces/plugins_wrap.cpp:5068:138: error: expected primary-expression before '>' token
  687.        std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * temp = reinterpret_cast< std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * >(argp2);
  688.                                                                                                                                           ^
  689. interfaces/plugins_wrap.cpp:5068:146: error: expected ')' before ';' token
  690.        std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * temp = reinterpret_cast< std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > * >(argp2);
  691.                                                                                                                                                   ^
  692. interfaces/plugins_wrap.cpp: In function 'PyObject* _wrap_PluginFactory_mPluginConcat_get(PyObject*, PyObject*)':
  693. interfaces/plugins_wrap.cpp:5086:20: error: 'INvPlugin' was not declared in this scope
  694.    std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > result;
  695.                     ^
  696. interfaces/plugins_wrap.cpp:5086:20: note: suggested alternative:
  697. In file included from interfaces/plugins_wrap.cpp:3680:0:
  698. /usr/include/x86_64-linux-gnu/NvInferPlugin.h:100:11: note:   'nvinfer1::plugin::INvPlugin'
  699.      class INvPlugin : public IPlugin
  700.            ^
  701. interfaces/plugins_wrap.cpp:5086:52: error: template argument 1 is invalid
  702.    std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > result;
  703.                                                     ^
  704. interfaces/plugins_wrap.cpp:5086:52: error: template argument 2 is invalid
  705. interfaces/plugins_wrap.cpp:5095:56: error: the value of 'INvPlugin' is not usable in a constant expression
  706.    resultobj = SWIG_NewPointerObj((new std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >(static_cast< const std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >& >(result))), SWIGTYPE_p_std__unique_ptrT_IN
  707.                                                         ^
  708. interfaces/plugins_wrap.cpp:1187:89: note: in definition of macro 'SWIG_NewPointerObj'
  709.  #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
  710.                                                                                          ^
  711. interfaces/plugins_wrap.cpp:5086:20: note: 'INvPlugin' was not declared 'constexpr'
  712.    std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > result;
  713.                     ^
  714. interfaces/plugins_wrap.cpp:5095:88: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Dp> class std::unique_ptr'
  715.    resultobj = SWIG_NewPointerObj((new std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >(static_cast< const std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >& >(result))), SWIGTYPE_p_std__unique_ptrT_IN
  716.                                                                                         ^
  717. interfaces/plugins_wrap.cpp:1187:89: note: in definition of macro 'SWIG_NewPointerObj'
  718.  #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
  719.                                                                                          ^
  720. interfaces/plugins_wrap.cpp:5095:88: note:   expected a type, got 'INvPlugin'
  721.    resultobj = SWIG_NewPointerObj((new std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >(static_cast< const std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >& >(result))), SWIGTYPE_p_std__unique_ptrT_IN
  722.                                                                                         ^
  723. interfaces/plugins_wrap.cpp:1187:89: note: in definition of macro 'SWIG_NewPointerObj'
  724.  #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
  725.                                                                                          ^
  726. interfaces/plugins_wrap.cpp:5095:88: error: template argument 2 is invalid
  727.    resultobj = SWIG_NewPointerObj((new std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >(static_cast< const std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >& >(result))), SWIGTYPE_p_std__unique_ptrT_IN
  728.                                                                                         ^
  729. interfaces/plugins_wrap.cpp:1187:89: note: in definition of macro 'SWIG_NewPointerObj'
  730.  #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
  731.                                                                                          ^
  732. interfaces/plugins_wrap.cpp:5095:126: error: the value of 'INvPlugin' is not usable in a constant expression
  733.    resultobj = SWIG_NewPointerObj((new std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >(static_cast< const std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >& >(result))), SWIGTYPE_p_std__unique_ptrT_IN
  734.                                                                                                                               ^
  735. interfaces/plugins_wrap.cpp:1187:89: note: in definition of macro 'SWIG_NewPointerObj'
  736.  #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
  737.                                                                                          ^
  738. interfaces/plugins_wrap.cpp:5086:20: note: 'INvPlugin' was not declared 'constexpr'
  739.    std::unique_ptr< INvPlugin,void (*)(INvPlugin *) > result;
  740.                     ^
  741. interfaces/plugins_wrap.cpp:5095:158: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Dp> class std::unique_ptr'
  742.    resultobj = SWIG_NewPointerObj((new std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >(static_cast< const std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >& >(result))), SWIGTYPE_p_std__unique_ptrT_IN
  743.                                                                                                                                                               ^
  744. interfaces/plugins_wrap.cpp:1187:89: note: in definition of macro 'SWIG_NewPointerObj'
  745.  #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
  746.                                                                                          ^
  747. interfaces/plugins_wrap.cpp:5095:158: note:   expected a type, got 'INvPlugin'
  748.    resultobj = SWIG_NewPointerObj((new std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >(static_cast< const std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >& >(result))), SWIGTYPE_p_std__unique_ptrT_IN
  749.                                                                                                                                                               ^
  750. interfaces/plugins_wrap.cpp:1187:89: note: in definition of macro 'SWIG_NewPointerObj'
  751.  #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
  752.                                                                                          ^
  753. interfaces/plugins_wrap.cpp:5095:158: error: template argument 2 is invalid
  754.    resultobj = SWIG_NewPointerObj((new std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >(static_cast< const std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >& >(result))), SWIGTYPE_p_std__unique_ptrT_IN
  755.                                                                                                                                                               ^
  756. interfaces/plugins_wrap.cpp:1187:89: note: in definition of macro 'SWIG_NewPointerObj'
  757.  #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
  758.                                                                                          ^
  759. interfaces/plugins_wrap.cpp:5095:159: error: expected '>' before '&' token
  760.    resultobj = SWIG_NewPointerObj((new std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >(static_cast< const std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >& >(result))), SWIGTYPE_p_std__unique_ptrT_IN
  761.                                                                                                                                                                ^
  762. interfaces/plugins_wrap.cpp:1187:89: note: in definition of macro 'SWIG_NewPointerObj'
  763.  #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
  764.                                                                                          ^
  765. interfaces/plugins_wrap.cpp:5095:159: error: expected '(' before '&' token
  766.    resultobj = SWIG_NewPointerObj((new std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >(static_cast< const std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >& >(result))), SWIGTYPE_p_std__unique_ptrT_IN
  767.                                                                                                                                                                ^
  768. interfaces/plugins_wrap.cpp:1187:89: note: in definition of macro 'SWIG_NewPointerObj'
  769.  #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
  770.                                                                                          ^
  771. interfaces/plugins_wrap.cpp:5095:161: error: expected primary-expression before '>' token
  772.    resultobj = SWIG_NewPointerObj((new std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >(static_cast< const std::unique_ptr< INvPlugin,void (*)(INvPlugin *) >& >(result))), SWIGTYPE_p_std__unique_ptrT_IN
  773.                                                                                                                                                                  ^
  774. interfaces/plugins_wrap.cpp:1187:89: note: in definition of macro 'SWIG_NewPointerObj'
  775.  #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
  776.                                                                                          ^
  777. interfaces/plugins_wrap.cpp: In function 'PyObject* _wrap_PluginFactory_mPluginFlattenConcat_set(PyObject*, PyObject*)':
  778. interfaces/plugins_wrap.cpp:5126:105: error: use of deleted function 'std::unique_ptr<_Tp, _Dp>& std::unique_ptr<_Tp, _Dp>::operator=(const std::unique_ptr<_Tp, _Dp>&) [with _Tp = FlattenConcat; _Dp = std::default_delete<FlattenConcat>]'
  779.        for (; ii < (size_t)2; ++ii) *(std::unique_ptr< FlattenConcat > *)&arg1->mPluginFlattenConcat[ii] = *((std::unique_ptr< FlattenConcat > *)arg2 + ii);
  780.                                                                                                          ^
  781. In file included from /usr/include/c++/5/memory:81:0,
  782.                  from ./src/FullyConnected.h:59,
  783.                  from interfaces/plugins_wrap.cpp:3683:
  784. /usr/include/c++/5/bits/unique_ptr.h:357:19: note: declared here
  785.        unique_ptr& operator=(const unique_ptr&) = delete;
  786.                    ^
  787. error: command 'g++' failed with exit status 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement