Torch2trt installation error

Description

Unable to install torch2trt experimental community contributed features

Can any help me to install torch2trt

Environment

TensorRT Version: ‘8.0.1.6’
GPU Type:
Nvidia Driver Version:
CUDA Version: 11.4
CUDNN Version: 8.2
Operating System + Version: ubuntu 20.04
Python Version (if applicable): 3.8.10
TensorFlow Version (if applicable):
PyTorch Version (if applicable): ‘1.8.1+cu102’
Baremetal or Container (if container which image + tag):

Relevant Files

Unable to install torch to torch2trt experimental community contributed features

the related error message is listed below

sudo bash build_contrib.sh
[sudo] passwn.patch:18: trailing whitespace.

Checking patch tools/pytorch-quantization/pytorch_quantization/nn/modules/tensor_quantizer.py…
error: while searching for:

    if quant_desc.amax is not None:
        self.register_buffer('_amax', torch.tensor(quant_desc.amax))

    # Clip module consumes a lot of memory, so only create it if learn_amax is True
    if self._learn_amax:

error: patch failed: tools/pytorch-quantization/pytorch_quantization/nn/modules/tensor_quantizer.py:87
error: while searching for:
if self._scale_amax is not None:
amax = amax.detach() * self._scale_amax

    return amax

def _fb_fake_quant(self, inputs, amax):

error: patch failed: tools/pytorch-quantization/pytorch_quantization/nn/modules/tensor_quantizer.py:273
Applying patch tools/pytorch-quantization/pytorch_quantization/nn/modules/tensor_quantizer.py with 2 rejects…
Rejected hunk #1.
Rejected hunk #2.
running install
running bdist_egg
running egg_info
writing pytorch_quantization.egg-info/PKG-INFO
writing dependency_links to pytorch_quantization.egg-info/dependency_links.txt
writing requirements to pytorch_quantization.egg-info/requires.txt
writing top-level names to pytorch_quantization.egg-info/top_level.txt
/usr/local/lib/python3.8/dist-packages/torch/utils/cpp_extension.py:369: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja… Falling back to using the slow distutils backend.
warnings.warn(msg.format(‘we could not find ninja.’))
reading manifest file ‘pytorch_quantization.egg-info/SOURCES.txt’
reading manifest template ‘MANIFEST.in’
writing manifest file ‘pytorch_quantization.egg-info/SOURCES.txt’
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
copying pytorch_quantization/version.py → build/lib.linux-x86_64-3.8/pytorch_quantization
copying pytorch_quantization/nn/modules/tensor_quantizer.py → build/lib.linux-x86_64-3.8/pytorch_quantization/nn/modules
running build_ext
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/pytorch_quantization
copying build/lib.linux-x86_64-3.8/pytorch_quantization/quant_modules.py → build/bdist.linux-x86_64/egg/pytorch_quantization
copying build/lib.linux-x86_64-3.8/pytorch_quantization/init.py → build/bdist.linux-x86_64/egg/pytorch_quantization
creating build/bdist.linux-x86_64/egg/pytorch_quantization/nn
copying build/lib.linux-x86_64-3.8/pytorch_quantization/nn/init.py → build/bdist.linux-x86_64/egg/pytorch_quantization/nn
creating build/bdist.linux-x86_64/egg/pytorch_quantization/nn/_functions
copying build/lib.linux-x86_64-3.8/pytorch_quantization/nn/_functions/quant_rnn.py → build/bdist.linux-x86_64/egg/pytorch_quantization/nn/_functions
copying build/lib.linux-x86_64-3.8/pytorch_quantization/nn/_functions/init.py → build/bdist.linux-x86_64/egg/pytorch_quantization/nn/_functions
copying build/lib.linux-x86_64-3.8/pytorch_quantization/nn/functional.py → build/bdist.linux-x86_64/egg/pytorch_quantization/nn
creating build/bdist.linux-x86_64/egg/pytorch_quantization/nn/modules
copying build/lib.linux-x86_64-3.8/pytorch_quantization/nn/modules/quant_rnn.py → build/bdist.linux-x86_64/egg/pytorch_quantization/nn/modules
copying build/lib.linux-x86_64-3.8/pytorch_quantization/nn/modules/quant_instancenorm.py → build/bdist.linux-x86_64/egg/pytorch_quantization/nn/modules
copying build/lib.linux-x86_64-3.8/pytorch_quantization/nn/modules/init.py → build/bdist.linux-x86_64/egg/pytorch_quantization/nn/modules
copying build/lib.linux-x86_64-3.8/pytorch_quantization/nn/modules/clip.py → build/bdist.linux-x86_64/egg/pytorch_quantization/nn/modules
copying build/lib.linux-x86_64-3.8/pytorch_quantization/nn/modules/quant_linear.py → build/bdist.linux-x86_64/egg/pytorch_quantization/nn/modules
copying build/lib.linux-x86_64-3.8/pytorch_quantization/nn/modules/quant_bert.py → build/bdist.linux-x86_64/egg/pytorch_quantization/nn/modules
copying build/lib.linux-x86_64-3.8/pytorch_quantization/nn/modules/_utils.py → build/bdist.linux-x86_64/egg/pytorch_quantization/nn/modules
copying build/lib.linux-x86_64-3.8/pytorch_quantization/nn/modules/tensor_quantizer.py → build/bdist.linux-x86_64/egg/pytorch_quantization/nn/modules
copying build/lib.linux-x86_64-3.8/pytorch_quantization/nn/modules/quant_conv.py → build/bdist.linux-x86_64/egg/pytorch_quantization/nn/modules
copying build/lib.linux-x86_64-3.8/pytorch_quantization/nn/modules/quant_pooling.py → build/bdist.linux-x86_64/egg/pytorch_quantization/nn/modules
creating build/bdist.linux-x86_64/egg/pytorch_quantization/utils
copying build/lib.linux-x86_64-3.8/pytorch_quantization/utils/init.py → build/bdist.linux-x86_64/egg/pytorch_quantization/utils
copying build/lib.linux-x86_64-3.8/pytorch_quantization/utils/quant_logging.py → build/bdist.linux-x86_64/egg/pytorch_quantization/utils
copying build/lib.linux-x86_64-3.8/pytorch_quantization/utils/reduce_amax.py → build/bdist.linux-x86_64/egg/pytorch_quantization/utils
creating build/bdist.linux-x86_64/egg/pytorch_quantization/optim
copying build/lib.linux-x86_64-3.8/pytorch_quantization/optim/init.py → build/bdist.linux-x86_64/egg/pytorch_quantization/optim
copying build/lib.linux-x86_64-3.8/pytorch_quantization/optim/helper.py → build/bdist.linux-x86_64/egg/pytorch_quantization/optim
copying build/lib.linux-x86_64-3.8/pytorch_quantization/tensor_quant.py → build/bdist.linux-x86_64/egg/pytorch_quantization
creating build/bdist.linux-x86_64/egg/pytorch_quantization/calib
copying build/lib.linux-x86_64-3.8/pytorch_quantization/calib/histogram.py → build/bdist.linux-x86_64/egg/pytorch_quantization/calib
copying build/lib.linux-x86_64-3.8/pytorch_quantization/calib/init.py → build/bdist.linux-x86_64/egg/pytorch_quantization/calib
copying build/lib.linux-x86_64-3.8/pytorch_quantization/calib/max.py → build/bdist.linux-x86_64/egg/pytorch_quantization/calib
copying build/lib.linux-x86_64-3.8/pytorch_quantization/calib/calibrator.py → build/bdist.linux-x86_64/egg/pytorch_quantization/calib
copying build/lib.linux-x86_64-3.8/pytorch_quantization/cuda_ext.cpython-38-x86_64-linux-gnu.so → build/bdist.linux-x86_64/egg/pytorch_quantization
copying build/lib.linux-x86_64-3.8/pytorch_quantization/version.py → build/bdist.linux-x86_64/egg/pytorch_quantization
byte-compiling build/bdist.linux-x86_64/egg/pytorch_quantization/quant_modules.py to quant_modules.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/pytorch_quantization/init.py to init.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/pytorch_quantization/nn/init.py to init.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/pytorch_quantization/nn/_functions/quant_rnn.py to quant_rnn.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/pytorch_quantization/nn/_functions/init.py to init.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/pytorch_quantization/nn/functional.py to functional.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/pytorch_quantization/nn/modules/quant_rnn.py to quant_rnn.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/pytorch_quantization/nn/modules/quant_instancenorm.py to quant_instancenorm.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/pytorch_quantization/nn/modules/init.py to init.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/pytorch_quantization/nn/modules/clip.py to clip.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/pytorch_quantization/nn/modules/quant_linear.py to quant_linear.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/pytorch_quantization/nn/modules/quant_bert.py to quant_bert.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/pytorch_quantization/nn/modules/_utils.py to _utils.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/pytorch_quantization/nn/modules/tensor_quantizer.py to tensor_quantizer.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/pytorch_quantization/nn/modules/quant_conv.py to quant_conv.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/pytorch_quantization/nn/modules/quant_pooling.py to quant_pooling.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/pytorch_quantization/utils/init.py to init.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/pytorch_quantization/utils/quant_logging.py to quant_logging.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/pytorch_quantization/utils/reduce_amax.py to reduce_amax.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/pytorch_quantization/optim/init.py to init.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/pytorch_quantization/optim/helper.py to helper.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/pytorch_quantization/tensor_quant.py to tensor_quant.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/pytorch_quantization/calib/histogram.py to histogram.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/pytorch_quantization/calib/init.py to init.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/pytorch_quantization/calib/max.py to max.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/pytorch_quantization/calib/calibrator.py to calibrator.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/pytorch_quantization/version.py to version.cpython-38.pyc
creating stub loader for pytorch_quantization/cuda_ext.cpython-38-x86_64-linux-gnu.so
byte-compiling build/bdist.linux-x86_64/egg/pytorch_quantization/cuda_ext.py to cuda_ext.cpython-38.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying pytorch_quantization.egg-info/PKG-INFO → build/bdist.linux-x86_64/egg/EGG-INFO
copying pytorch_quantization.egg-info/SOURCES.txt → build/bdist.linux-x86_64/egg/EGG-INFO
copying pytorch_quantization.egg-info/dependency_links.txt → build/bdist.linux-x86_64/egg/EGG-INFO
copying pytorch_quantization.egg-info/not-zip-safe → build/bdist.linux-x86_64/egg/EGG-INFO
copying pytorch_quantization.egg-info/requires.txt → build/bdist.linux-x86_64/egg/EGG-INFO
copying pytorch_quantization.egg-info/top_level.txt → build/bdist.linux-x86_64/egg/EGG-INFO
writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt
creating ‘dist/pytorch_quantization-2.1.0-py3.8-linux-x86_64.egg’ and adding ‘build/bdist.linux-x86_64/egg’ to it
removing ‘build/bdist.linux-x86_64/egg’ (and everything under it)
Processing pytorch_quantization-2.1.0-py3.8-linux-x86_64.egg
removing ‘/usr/local/lib/python3.8/dist-packages/pytorch_quantization-2.1.0-py3.8-linux-x86_64.egg’ (and everything under it)
creating /usr/local/lib/python3.8/dist-packages/pytorch_quantization-2.1.0-py3.8-linux-x86_64.egg
Extracting pytorch_quantization-2.1.0-py3.8-linux-x86_64.egg to /usr/local/lib/python3.8/dist-packages
pytorch-quantization 2.1.0 is already the active version in easy-install.pth

Installed /usr/local/lib/python3.8/dist-packages/pytorch_quantization-2.1.0-py3.8-linux-x86_64.egg
Processing dependencies for pytorch-quantization==2.1.0
Searching for sphinx-glpi-theme==0.3
Best match: sphinx-glpi-theme 0.3
Processing sphinx_glpi_theme-0.3-py3.8.egg
sphinx-glpi-theme 0.3 is already the active version in easy-install.pth

Using /usr/local/lib/python3.8/dist-packages/sphinx_glpi_theme-0.3-py3.8.egg
Searching for scipy==1.7.3
Best match: scipy 1.7.3
Processing scipy-1.7.3-py3.8-linux-x86_64.egg
scipy 1.7.3 is already the active version in easy-install.pth

Using /usr/local/lib/python3.8/dist-packages/scipy-1.7.3-py3.8-linux-x86_64.egg
Searching for PyYAML==5.3.1
Best match: PyYAML 5.3.1
Adding PyYAML 5.3.1 to easy-install.pth file

Using /usr/lib/python3/dist-packages
Searching for prettytable==2.4.0
Best match: prettytable 2.4.0
Processing prettytable-2.4.0-py3.8.egg
prettytable 2.4.0 is already the active version in easy-install.pth

Using /usr/local/lib/python3.8/dist-packages/prettytable-2.4.0-py3.8.egg
Searching for numpy==1.21.2
Best match: numpy 1.21.2
Processing numpy-1.21.2-py3.8-linux-x86_64.egg
numpy 1.21.2 is already the active version in easy-install.pth
Installing f2py script to /usr/local/bin
Installing f2py3 script to /usr/local/bin
Installing f2py3.8 script to /usr/local/bin

Using /usr/local/lib/python3.8/dist-packages/numpy-1.21.2-py3.8-linux-x86_64.egg
Searching for absl-py==1.0.0
Best match: absl-py 1.0.0
Processing absl_py-1.0.0-py3.8.egg
absl-py 1.0.0 is already the active version in easy-install.pth

Using /usr/local/lib/python3.8/dist-packages/absl_py-1.0.0-py3.8.egg
Searching for wcwidth==0.2.5
Best match: wcwidth 0.2.5
Processing wcwidth-0.2.5-py3.8.egg
wcwidth 0.2.5 is already the active version in easy-install.pth

Using /usr/local/lib/python3.8/dist-packages/wcwidth-0.2.5-py3.8.egg
Searching for six==1.14.0
Best match: six 1.14.0
Adding six 1.14.0 to easy-install.pth file

Using /usr/lib/python3/dist-packages
Finished processing dependencies for pytorch-quantization==2.1.0
/home/raguhtic/torch2trt/scripts
/home/raguhtic/torch2trt /home/raguhtic/torch2trt/scripts
running install
running bdist_egg
running egg_info
writing torch2trt.egg-info/PKG-INFO
writing dependency_links to torch2trt.egg-info/dependency_links.txt
writing top-level names to torch2trt.egg-info/top_level.txt
/usr/local/lib/python3.8/dist-packages/torch/utils/cpp_extension.py:369: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja… Falling back to using the slow distutils backend.
warnings.warn(msg.format(‘we could not find ninja.’))
reading manifest file ‘torch2trt.egg-info/SOURCES.txt’
writing manifest file ‘torch2trt.egg-info/SOURCES.txt’
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
building ‘plugins’ extension
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/aarch64-linux-gnu -I/home/raguhtic/TensorRT/include -I/usr/local/lib/python3.8/dist-packages/torch/include -I/usr/local/lib/python3.8/dist-packages/torch/include/torch/csrc/api/include -I/usr/local/lib/python3.8/dist-packages/torch/include/TH -I/usr/local/lib/python3.8/dist-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.8 -c torch2trt/plugins/plugins.cpp -o build/temp.linux-x86_64-3.8/torch2trt/plugins/plugins.o -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_gcc" -DPYBIND11_STDLIB="_libstdcpp" -DPYBIND11_BUILD_ABI="_cxxabi1011" -DTORCH_EXTENSION_NAME=plugins -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
In file included from /usr/local/lib/python3.8/dist-packages/torch/include/ATen/Parallel.h:140,
from /usr/local/lib/python3.8/dist-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
from /usr/local/lib/python3.8/dist-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
from /usr/local/lib/python3.8/dist-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
from /usr/local/lib/python3.8/dist-packages/torch/include/torch/csrc/api/include/torch/all.h:13,
from /usr/local/lib/python3.8/dist-packages/torch/include/torch/extension.h:4,
from torch2trt/plugins/plugins.cpp:1:
/usr/local/lib/python3.8/dist-packages/torch/include/ATen/ParallelOpenMP.h:83: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
83 | #pragma omp parallel for if ((end - begin) >= grain_size)
|
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h: In member function ‘virtual bool nvinfer1::IGpuAllocator::deallocate(void*)’:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:1202:26: warning: ‘virtual void nvinfer1::IGpuAllocator::free(void*)’ is deprecated [-Wdeprecated-declarations]
1202 | this->free(memory);
| ^
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:1141:33: note: declared here
1141 | TRT_DEPRECATED virtual void free(void* const memory) noexcept = 0;
| ^~~~
In file included from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInfer.h: At global scope:
/home/raguhtic/TensorRT/include/NvInfer.h:6611:101: warning: ‘IRNNv2Layer’ is deprecated [-Wdeprecated-declarations]
6611 | _t layerCount, int32_t hiddenSize, int32_t maxSeqLen, RNNOperation op) noexcept
| ^~~~~~~~

/home/raguhtic/TensorRT/include/NvInfer.h:3202:22: note: declared here
3202 | class TRT_DEPRECATED IRNNv2Layer : public ILayer
| ^~~~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:2:
torch2trt/plugins/interpolate.cpp:106:15: error: looser throw specifier for ‘virtual const char* torch2trt::InterpolatePlugin::getPluginType() const’
106 | const char* getPluginType() const override {
| ^~~~~~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:396:30: note: overridden function is ‘virtual const AsciiChar* nvinfer1::IPluginV2::getPluginType() const noexcept’
396 | virtual AsciiChar const* getPluginType() const noexcept = 0;
| ^~~~~~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:2:
torch2trt/plugins/interpolate.cpp:110:15: error: looser throw specifier for ‘virtual const char* torch2trt::InterpolatePlugin::getPluginVersion() const’
110 | const char* getPluginVersion() const override {
| ^~~~~~~~~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:405:30: note: overridden function is ‘virtual const AsciiChar* nvinfer1::IPluginV2::getPluginVersion() const noexcept’
405 | virtual AsciiChar const* getPluginVersion() const noexcept = 0;
| ^~~~~~~~~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:2:
torch2trt/plugins/interpolate.cpp:114:7: error: looser throw specifier for ‘virtual int torch2trt::InterpolatePlugin::getNbOutputs() const’
114 | int getNbOutputs() const override {
| ^~~~~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:415:21: note: overridden function is ‘virtual int32_t nvinfer1::IPluginV2::getNbOutputs() const noexcept’
415 | virtual int32_t getNbOutputs() const noexcept = 0;
| ^~~~~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:2:
torch2trt/plugins/interpolate.cpp:118:8: error: looser throw specifier for ‘virtual nvinfer1::Dims torch2trt::InterpolatePlugin::getOutputDimensions(int, const Dims*, int)’
118 | Dims getOutputDimensions(int index, const Dims* inputs, int nbInputDims) override {
| ^~~~~~~~~~~~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:427:18: note: overridden function is ‘virtual nvinfer1::Dims nvinfer1::IPluginV2::getOutputDimensions(int32_t, const Dims*, int32_t) noexcept’
427 | virtual Dims getOutputDimensions(int32_t index, Dims const* inputs, int32_t nbInputDims) noexcept = 0;
| ^~~~~~~~~~~~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:2:
torch2trt/plugins/interpolate.cpp:130:8: error: looser throw specifier for ‘virtual bool torch2trt::InterpolatePlugin::supportsFormat(nvinfer1::DataType, nvinfer1::PluginFormat) const’
130 | bool supportsFormat(DataType type, PluginFormat format) const override {
| ^~~~~~~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:446:18: note: overridden function is ‘virtual bool nvinfer1::IPluginV2::supportsFormat(nvinfer1::DataType, nvinfer1::PluginFormat) const noexcept’
446 | virtual bool supportsFormat(DataType type, PluginFormat format) const noexcept = 0;
| ^~~~~~~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:2:
torch2trt/plugins/interpolate.cpp:140:8: error: looser throw specifier for ‘virtual void torch2trt::InterpolatePlugin::configureWithFormat(const Dims*, int, const Dims*, int, nvinfer1::DataType, nvinfer1::PluginFormat, int)’
140 | void configureWithFormat(const Dims* inputDims, int nbInputs, const Dims* outputDims,
| ^~~~~~~~~~~~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:471:18: note: overridden function is ‘virtual void nvinfer1::IPluginV2::configureWithFormat(const Dims*, int32_t, const Dims*, int32_t, nvinfer1::DataType, nvinfer1::PluginFormat, int32_t) noexcept’
471 | virtual void configureWithFormat(Dims const* inputDims, int32_t nbInputs, Dims const* outputDims, int32_t nbOutputs,
| ^~~~~~~~~~~~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:2:
torch2trt/plugins/interpolate.cpp:165:7: error: looser throw specifier for ‘virtual int torch2trt::InterpolatePlugin::initialize()’
165 | int initialize() override {
| ^~~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:479:21: note: overridden function is ‘virtual int32_t nvinfer1::IPluginV2::initialize() noexcept’
479 | virtual int32_t initialize() noexcept = 0;
| ^~~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:2:
torch2trt/plugins/interpolate.cpp:179:8: error: looser throw specifier for ‘virtual void torch2trt::InterpolatePlugin::terminate()’
179 | void terminate() override {}
| ^~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:486:18: note: overridden function is ‘virtual void nvinfer1::IPluginV2::terminate() noexcept’
486 | virtual void terminate() noexcept = 0;
| ^~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:2:
torch2trt/plugins/interpolate.cpp:181:10: error: looser throw specifier for ‘virtual size_t torch2trt::InterpolatePlugin::getWorkspaceSize(int) const’
181 | size_t getWorkspaceSize(int maxBatchSize) const override { return 0; }
| ^~~~~~~~~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:496:20: note: overridden function is ‘virtual size_t nvinfer1::IPluginV2::getWorkspaceSize(int32_t) const noexcept’
496 | virtual size_t getWorkspaceSize(int32_t maxBatchSize) const noexcept = 0;
| ^~~~~~~~~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:2:
torch2trt/plugins/interpolate.cpp:183:7: error: ‘int torch2trt::InterpolatePlugin::enqueue(int, const void* const*, void**, void*, cudaStream_t)’ marked ‘override’, but does not override
183 | int enqueue(int batchSize, const void* const* inputs, void** outputs, void* workspace, cudaStream_t stream) override {
| ^~~~~~~
torch2trt/plugins/interpolate.cpp:230:10: error: looser throw specifier for ‘virtual size_t torch2trt::InterpolatePlugin::getSerializationSize() const’
230 | size_t getSerializationSize() const override {
| ^~~~~~~~~~~~~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:518:20: note: overridden function is ‘virtual size_t nvinfer1::IPluginV2::getSerializationSize() const noexcept’
518 | virtual size_t getSerializationSize() const noexcept = 0;
| ^~~~~~~~~~~~~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:2:
torch2trt/plugins/interpolate.cpp:234:8: error: looser throw specifier for ‘virtual void torch2trt::InterpolatePlugin::serialize(void*) const’
234 | void serialize(void* buffer) const override {
| ^~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:528:18: note: overridden function is ‘virtual void nvinfer1::IPluginV2::serialize(void*) const noexcept’
528 | virtual void serialize(void* buffer) const noexcept = 0;
| ^~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:2:
torch2trt/plugins/interpolate.cpp:240:8: error: looser throw specifier for ‘virtual void torch2trt::InterpolatePlugin::destroy()’
240 | void destroy() override {}
| ^~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:533:18: note: overridden function is ‘virtual void nvinfer1::IPluginV2::destroy() noexcept’
533 | virtual void destroy() noexcept = 0;
| ^~~~~~~
In file included from torch2trt/plugins/plugins.cpp:2:
torch2trt/plugins/interpolate.cpp:242:14: error: looser throw specifier for ‘virtual nvinfer1::IPluginV2* torch2trt::InterpolatePlugin::clone() const’
242 | IPluginV2* clone() const override {
| ^~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:543:24: note: overridden function is ‘virtual nvinfer1::IPluginV2* nvinfer1::IPluginV2::clone() const noexcept’
543 | virtual IPluginV2* clone() const noexcept = 0;
| ^~~~~
In file included from torch2trt/plugins/plugins.cpp:2:
torch2trt/plugins/interpolate.cpp:246:8: error: looser throw specifier for ‘virtual void torch2trt::InterpolatePlugin::setPluginNamespace(const char*)’
246 | void setPluginNamespace(const char* pluginNamespace) override {}
| ^~~~~~~~~~~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:554:18: note: overridden function is ‘virtual void nvinfer1::IPluginV2::setPluginNamespace(const AsciiChar*) noexcept’
554 | virtual void setPluginNamespace(AsciiChar const* pluginNamespace) noexcept = 0;
| ^~~~~~~~~~~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:2:
torch2trt/plugins/interpolate.cpp:248:15: error: looser throw specifier for ‘virtual const char* torch2trt::InterpolatePlugin::getPluginNamespace() const’
248 | const char *getPluginNamespace() const override {
| ^~~~~~~~~~~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:559:30: note: overridden function is ‘virtual const AsciiChar* nvinfer1::IPluginV2::getPluginNamespace() const noexcept’
559 | virtual AsciiChar const* getPluginNamespace() const noexcept = 0;
| ^~~~~~~~~~~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:2:
torch2trt/plugins/interpolate.cpp: In member function ‘virtual nvinfer1::Dims torch2trt::InterpolatePlugin::getOutputDimensions(int, const Dims*, int)’:
torch2trt/plugins/interpolate.cpp:123:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
123 | for (int i = 0; i < size.size(); i++) {
| ^~~~~~~~~~~
torch2trt/plugins/interpolate.cpp: In member function ‘virtual bool torch2trt::InterpolatePlugin::supportsFormat(nvinfer1::DataType, nvinfer1::PluginFormat) const’:
torch2trt/plugins/interpolate.cpp:131:33: error: ‘kNCHW’ is not a member of ‘nvinfer1::PluginFormat’ {aka ‘nvinfer1::TensorFormat’}
131 | if (format != PluginFormat::kNCHW) {
| ^~~~~
torch2trt/plugins/interpolate.cpp: In member function ‘virtual nvinfer1::IPluginV2* torch2trt::InterpolatePlugin::clone() const’:
torch2trt/plugins/interpolate.cpp:243:59: error: invalid new-expression of abstract class type ‘torch2trt::InterpolatePlugin’
243 | return new InterpolatePlugin(size, mode, align_corners);
| ^
torch2trt/plugins/interpolate.cpp:17:7: note: because the following virtual functions are pure within ‘torch2trt::InterpolatePlugin’:
17 | class InterpolatePlugin : public IPluginV2 {
| ^~~~~~~~~~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:509:21: note: ‘virtual int32_t nvinfer1::IPluginV2::enqueue(int32_t, const void* const*, void* const*, void*, cudaStream_t)’
509 | virtual int32_t enqueue(int32_t batchSize, void const* const* inputs, void* const* outputs, void* workspace,
| ^~~~~~~
In file included from torch2trt/plugins/plugins.cpp:2:
torch2trt/plugins/interpolate.cpp: At global scope:
torch2trt/plugins/interpolate.cpp:258:15: error: looser throw specifier for ‘virtual const char* torch2trt::InterpolatePluginCreator::getPluginNamespace() const’
258 | const char *getPluginNamespace() const override {
| ^~~~~~~~~~~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:969:30: note: overridden function is ‘virtual const AsciiChar* nvinfer1::IPluginCreator::getPluginNamespace() const noexcept’
969 | virtual AsciiChar const* getPluginNamespace() const noexcept = 0;
| ^~~~~~~~~~~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:2:
torch2trt/plugins/interpolate.cpp:262:15: error: looser throw specifier for ‘virtual const char* torch2trt::InterpolatePluginCreator::getPluginName() const’
262 | const char *getPluginName() const override {
| ^~~~~~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:929:30: note: overridden function is ‘virtual const AsciiChar* nvinfer1::IPluginCreator::getPluginName() const noexcept’
929 | virtual AsciiChar const* getPluginName() const noexcept = 0;
| ^~~~~~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:2:
torch2trt/plugins/interpolate.cpp:266:15: error: looser throw specifier for ‘virtual const char* torch2trt::InterpolatePluginCreator::getPluginVersion() const’
266 | const char *getPluginVersion() const override {
| ^~~~~~~~~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:937:30: note: overridden function is ‘virtual const AsciiChar* nvinfer1::IPluginCreator::getPluginVersion() const noexcept’
937 | virtual AsciiChar const* getPluginVersion() const noexcept = 0;
| ^~~~~~~~~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:2:
torch2trt/plugins/interpolate.cpp:270:14: error: looser throw specifier for ‘virtual nvinfer1::IPluginV2* torch2trt::InterpolatePluginCreator::deserializePlugin(const char*, const void*, size_t)’
270 | IPluginV2 *deserializePlugin(const char *name, const void *data, size_t length) override {
| ^~~~~~~~~~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:953:24: note: overridden function is ‘virtual nvinfer1::IPluginV2* nvinfer1::IPluginCreator::deserializePlugin(const AsciiChar*, const void*, size_t) noexcept’
953 | virtual IPluginV2* deserializePlugin(AsciiChar const* name, void const* serialData, size_t serialLength) noexcept = 0;
| ^~~~~~~~~~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:2:
torch2trt/plugins/interpolate.cpp:274:8: error: looser throw specifier for ‘virtual void torch2trt::InterpolatePluginCreator::setPluginNamespace(const char*)’
274 | void setPluginNamespace(const char *N) override {}
| ^~~~~~~~~~~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:961:18: note: overridden function is ‘virtual void nvinfer1::IPluginCreator::setPluginNamespace(const AsciiChar*) noexcept’
961 | virtual void setPluginNamespace(AsciiChar const* pluginNamespace) noexcept = 0;
| ^~~~~~~~~~~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:2:
torch2trt/plugins/interpolate.cpp:275:32: error: looser throw specifier for ‘virtual const nvinfer1::PluginFieldCollection* torch2trt::InterpolatePluginCreator::getFieldNames()’
275 | const PluginFieldCollection *getFieldNames() override { return nullptr; }
| ^~~~~~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:943:42: note: overridden function is ‘virtual const nvinfer1::PluginFieldCollection* nvinfer1::IPluginCreator::getFieldNames() noexcept’
943 | virtual PluginFieldCollection const* getFieldNames() noexcept = 0;
| ^~~~~~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:2:
torch2trt/plugins/interpolate.cpp:277:14: error: looser throw specifier for ‘virtual nvinfer1::IPluginV2* torch2trt::InterpolatePluginCreator::createPlugin(const char*, const nvinfer1::PluginFieldCollection*)’
277 | IPluginV2 *createPlugin(const char *name, const PluginFieldCollection *fc) override { return nullptr; }
| ^~~~~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:948:24: note: overridden function is ‘virtual nvinfer1::IPluginV2* nvinfer1::IPluginCreator::createPlugin(const AsciiChar*, const nvinfer1::PluginFieldCollection*) noexcept’
948 | virtual IPluginV2* createPlugin(AsciiChar const* name, PluginFieldCollection const* fc) noexcept = 0;
| ^~~~~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:2:
torch2trt/plugins/interpolate.cpp: In member function ‘virtual nvinfer1::IPluginV2* torch2trt::InterpolatePluginCreator::deserializePlugin(const char*, const void*, size_t)’:
torch2trt/plugins/interpolate.cpp:271:60: error: invalid new-expression of abstract class type ‘torch2trt::InterpolatePlugin’
271 | return new InterpolatePlugin((const char*) data, length);
| ^
In file included from torch2trt/plugins/plugins.cpp:3:
torch2trt/plugins/group_norm.cpp: At global scope:
torch2trt/plugins/group_norm.cpp:115:17: error: looser throw specifier for ‘virtual const char* torch2trt::GroupNormPlugin::getPluginType() const’
115 | const char* getPluginType() const override {
| ^~~~~~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:396:30: note: overridden function is ‘virtual const AsciiChar* nvinfer1::IPluginV2::getPluginType() const noexcept’
396 | virtual AsciiChar const* getPluginType() const noexcept = 0;
| ^~~~~~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:3:
torch2trt/plugins/group_norm.cpp:119:17: error: looser throw specifier for ‘virtual const char* torch2trt::GroupNormPlugin::getPluginVersion() const’
119 | const char* getPluginVersion() const override {
| ^~~~~~~~~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:405:30: note: overridden function is ‘virtual const AsciiChar* nvinfer1::IPluginV2::getPluginVersion() const noexcept’
405 | virtual AsciiChar const* getPluginVersion() const noexcept = 0;
| ^~~~~~~~~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:3:
torch2trt/plugins/group_norm.cpp:123:9: error: looser throw specifier for ‘virtual int torch2trt::GroupNormPlugin::getNbOutputs() const’
123 | int getNbOutputs() const override {
| ^~~~~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:415:21: note: overridden function is ‘virtual int32_t nvinfer1::IPluginV2::getNbOutputs() const noexcept’
415 | virtual int32_t getNbOutputs() const noexcept = 0;
| ^~~~~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:3:
torch2trt/plugins/group_norm.cpp:127:10: error: looser throw specifier for ‘virtual nvinfer1::Dims torch2trt::GroupNormPlugin::getOutputDimensions(int, const Dims*, int)’
127 | Dims getOutputDimensions(int index, const Dims* inputs, int nbInputDims) override {
| ^~~~~~~~~~~~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:427:18: note: overridden function is ‘virtual nvinfer1::Dims nvinfer1::IPluginV2::getOutputDimensions(int32_t, const Dims*, int32_t) noexcept’
427 | virtual Dims getOutputDimensions(int32_t index, Dims const* inputs, int32_t nbInputDims) noexcept = 0;
| ^~~~~~~~~~~~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:3:
torch2trt/plugins/group_norm.cpp:138:10: error: looser throw specifier for ‘virtual bool torch2trt::GroupNormPlugin::supportsFormat(nvinfer1::DataType, nvinfer1::PluginFormat) const’
138 | bool supportsFormat(DataType type, PluginFormat format) const override {
| ^~~~~~~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:446:18: note: overridden function is ‘virtual bool nvinfer1::IPluginV2::supportsFormat(nvinfer1::DataType, nvinfer1::PluginFormat) const noexcept’
446 | virtual bool supportsFormat(DataType type, PluginFormat format) const noexcept = 0;
| ^~~~~~~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:3:
torch2trt/plugins/group_norm.cpp:148:8: error: looser throw specifier for ‘virtual void torch2trt::GroupNormPlugin::configureWithFormat(const Dims*, int, const Dims*, int, nvinfer1::DataType, nvinfer1::PluginFormat, int)’
148 | void configureWithFormat(const Dims* inputDims, int nbInputs, const Dims* outputDims,
| ^~~~~~~~~~~~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:471:18: note: overridden function is ‘virtual void nvinfer1::IPluginV2::configureWithFormat(const Dims*, int32_t, const Dims*, int32_t, nvinfer1::DataType, nvinfer1::PluginFormat, int32_t) noexcept’
471 | virtual void configureWithFormat(Dims const* inputDims, int32_t nbInputs, Dims const* outputDims, int32_t nbOutputs,
| ^~~~~~~~~~~~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:3:
torch2trt/plugins/group_norm.cpp:173:7: error: looser throw specifier for ‘virtual int torch2trt::GroupNormPlugin::initialize()’
173 | int initialize() override {
| ^~~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:479:21: note: overridden function is ‘virtual int32_t nvinfer1::IPluginV2::initialize() noexcept’
479 | virtual int32_t initialize() noexcept = 0;
| ^~~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:3:
torch2trt/plugins/group_norm.cpp:191:8: error: looser throw specifier for ‘virtual void torch2trt::GroupNormPlugin::terminate()’
191 | void terminate() override {}
| ^~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:486:18: note: overridden function is ‘virtual void nvinfer1::IPluginV2::terminate() noexcept’
486 | virtual void terminate() noexcept = 0;
| ^~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:3:
torch2trt/plugins/group_norm.cpp:193:10: error: looser throw specifier for ‘virtual size_t torch2trt::GroupNormPlugin::getWorkspaceSize(int) const’
193 | size_t getWorkspaceSize(int maxBatchSize) const override { return 0; }
| ^~~~~~~~~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:496:20: note: overridden function is ‘virtual size_t nvinfer1::IPluginV2::getWorkspaceSize(int32_t) const noexcept’
496 | virtual size_t getWorkspaceSize(int32_t maxBatchSize) const noexcept = 0;
| ^~~~~~~~~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:3:
torch2trt/plugins/group_norm.cpp:195:7: error: ‘int torch2trt::GroupNormPlugin::enqueue(int, const void* const*, void**, void*, cudaStream_t)’ marked ‘override’, but does not override
195 | int enqueue(int batchSize, const void* const* inputs, void** outputs, void* workspace, cudaStream_t stream) override {
| ^~~~~~~
In file included from torch2trt/plugins/plugins.cpp:3:
torch2trt/plugins/group_norm.cpp:238:10: error: looser throw specifier for ‘virtual size_t torch2trt::GroupNormPlugin::getSerializationSize() const’
238 | size_t getSerializationSize() const override {
| ^~~~~~~~~~~~~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:518:20: note: overridden function is ‘virtual size_t nvinfer1::IPluginV2::getSerializationSize() const noexcept’
518 | virtual size_t getSerializationSize() const noexcept = 0;
| ^~~~~~~~~~~~~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:3:
torch2trt/plugins/group_norm.cpp:242:8: error: looser throw specifier for ‘virtual void torch2trt::GroupNormPlugin::serialize(void*) const’
242 | void serialize(void* buffer) const override {
| ^~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:528:18: note: overridden function is ‘virtual void nvinfer1::IPluginV2::serialize(void*) const noexcept’
528 | virtual void serialize(void* buffer) const noexcept = 0;
| ^~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:3:
torch2trt/plugins/group_norm.cpp:248:8: error: looser throw specifier for ‘virtual void torch2trt::GroupNormPlugin::destroy()’
248 | void destroy() override {}
| ^~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:533:18: note: overridden function is ‘virtual void nvinfer1::IPluginV2::destroy() noexcept’
533 | virtual void destroy() noexcept = 0;
| ^~~~~~~
In file included from torch2trt/plugins/plugins.cpp:3:
torch2trt/plugins/group_norm.cpp:250:14: error: looser throw specifier for ‘virtual nvinfer1::IPluginV2* torch2trt::GroupNormPlugin::clone() const’
250 | IPluginV2* clone() const override {
| ^~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:543:24: note: overridden function is ‘virtual nvinfer1::IPluginV2* nvinfer1::IPluginV2::clone() const noexcept’
543 | virtual IPluginV2* clone() const noexcept = 0;
| ^~~~~
In file included from torch2trt/plugins/plugins.cpp:3:
torch2trt/plugins/group_norm.cpp:254:8: error: looser throw specifier for ‘virtual void torch2trt::GroupNormPlugin::setPluginNamespace(const char*)’
254 | void setPluginNamespace(const char* pluginNamespace) override {}
| ^~~~~~~~~~~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:554:18: note: overridden function is ‘virtual void nvinfer1::IPluginV2::setPluginNamespace(const AsciiChar*) noexcept’
554 | virtual void setPluginNamespace(AsciiChar const* pluginNamespace) noexcept = 0;
| ^~~~~~~~~~~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:3:
torch2trt/plugins/group_norm.cpp:256:15: error: looser throw specifier for ‘virtual const char* torch2trt::GroupNormPlugin::getPluginNamespace() const’
256 | const char *getPluginNamespace() const override {
| ^~~~~~~~~~~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:559:30: note: overridden function is ‘virtual const AsciiChar* nvinfer1::IPluginV2::getPluginNamespace() const noexcept’
559 | virtual AsciiChar const* getPluginNamespace() const noexcept = 0;
| ^~~~~~~~~~~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:3:
torch2trt/plugins/group_norm.cpp: In member function ‘virtual bool torch2trt::GroupNormPlugin::supportsFormat(nvinfer1::DataType, nvinfer1::PluginFormat) const’:
torch2trt/plugins/group_norm.cpp:139:35: error: ‘kNCHW’ is not a member of ‘nvinfer1::PluginFormat’ {aka ‘nvinfer1::TensorFormat’}
139 | if (format != PluginFormat::kNCHW) {
| ^~~~~
In file included from torch2trt/plugins/plugins.cpp:3:
torch2trt/plugins/group_norm.cpp: In member function ‘virtual nvinfer1::IPluginV2* torch2trt::GroupNormPlugin::clone() const’:
torch2trt/plugins/group_norm.cpp:251:61: error: invalid new-expression of abstract class type ‘torch2trt::GroupNormPlugin’
251 | return new GroupNormPlugin(num_groups, weight, bias, eps);
| ^
In file included from torch2trt/plugins/plugins.cpp:3:
torch2trt/plugins/group_norm.cpp:16:7: note: because the following virtual functions are pure within ‘torch2trt::GroupNormPlugin’:
16 | class GroupNormPlugin : public IPluginV2 {
| ^~~~~~~~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:509:21: note: ‘virtual int32_t nvinfer1::IPluginV2::enqueue(int32_t, const void* const*, void* const*, void*, cudaStream_t)’
509 | virtual int32_t enqueue(int32_t batchSize, void const* const* inputs, void* const* outputs, void* workspace,
| ^~~~~~~
In file included from torch2trt/plugins/plugins.cpp:3:
torch2trt/plugins/group_norm.cpp: At global scope:
torch2trt/plugins/group_norm.cpp:266:15: error: looser throw specifier for ‘virtual const char* torch2trt::GroupNormPluginCreator::getPluginNamespace() const’
266 | const char *getPluginNamespace() const override {
| ^~~~~~~~~~~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:969:30: note: overridden function is ‘virtual const AsciiChar* nvinfer1::IPluginCreator::getPluginNamespace() const noexcept’
969 | virtual AsciiChar const* getPluginNamespace() const noexcept = 0;
| ^~~~~~~~~~~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:3:
torch2trt/plugins/group_norm.cpp:270:15: error: looser throw specifier for ‘virtual const char* torch2trt::GroupNormPluginCreator::getPluginName() const’
270 | const char *getPluginName() const override {
| ^~~~~~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:929:30: note: overridden function is ‘virtual const AsciiChar* nvinfer1::IPluginCreator::getPluginName() const noexcept’
929 | virtual AsciiChar const* getPluginName() const noexcept = 0;
| ^~~~~~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:3:
torch2trt/plugins/group_norm.cpp:274:15: error: looser throw specifier for ‘virtual const char* torch2trt::GroupNormPluginCreator::getPluginVersion() const’
274 | const char *getPluginVersion() const override {
| ^~~~~~~~~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:937:30: note: overridden function is ‘virtual const AsciiChar* nvinfer1::IPluginCreator::getPluginVersion() const noexcept’
937 | virtual AsciiChar const* getPluginVersion() const noexcept = 0;
| ^~~~~~~~~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:3:
torch2trt/plugins/group_norm.cpp:278:14: error: looser throw specifier for ‘virtual nvinfer1::IPluginV2* torch2trt::GroupNormPluginCreator::deserializePlugin(const char*, const void*, size_t)’
278 | IPluginV2 *deserializePlugin(const char *name, const void *data, size_t length) override {
| ^~~~~~~~~~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:953:24: note: overridden function is ‘virtual nvinfer1::IPluginV2* nvinfer1::IPluginCreator::deserializePlugin(const AsciiChar*, const void*, size_t) noexcept’
953 | virtual IPluginV2* deserializePlugin(AsciiChar const* name, void const* serialData, size_t serialLength) noexcept = 0;
| ^~~~~~~~~~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:3:
torch2trt/plugins/group_norm.cpp:282:8: error: looser throw specifier for ‘virtual void torch2trt::GroupNormPluginCreator::setPluginNamespace(const char*)’
282 | void setPluginNamespace(const char *N) override {}
| ^~~~~~~~~~~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:961:18: note: overridden function is ‘virtual void nvinfer1::IPluginCreator::setPluginNamespace(const AsciiChar*) noexcept’
961 | virtual void setPluginNamespace(AsciiChar const* pluginNamespace) noexcept = 0;
| ^~~~~~~~~~~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:3:
torch2trt/plugins/group_norm.cpp:283:32: error: looser throw specifier for ‘virtual const nvinfer1::PluginFieldCollection* torch2trt::GroupNormPluginCreator::getFieldNames()’
283 | const PluginFieldCollection *getFieldNames() override { return nullptr; }
| ^~~~~~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:943:42: note: overridden function is ‘virtual const nvinfer1::PluginFieldCollection* nvinfer1::IPluginCreator::getFieldNames() noexcept’
943 | virtual PluginFieldCollection const* getFieldNames() noexcept = 0;
| ^~~~~~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:3:
torch2trt/plugins/group_norm.cpp:285:14: error: looser throw specifier for ‘virtual nvinfer1::IPluginV2* torch2trt::GroupNormPluginCreator::createPlugin(const char*, const nvinfer1::PluginFieldCollection*)’
285 | IPluginV2 *createPlugin(const char *name, const PluginFieldCollection *fc) override { return nullptr; }
| ^~~~~~~~~~~~
In file included from /home/raguhtic/TensorRT/include/NvInferLegacyDims.h:20,
from /home/raguhtic/TensorRT/include/NvInfer.h:20,
from torch2trt/plugins/interpolate.cpp:6,
from torch2trt/plugins/plugins.cpp:2:
/home/raguhtic/TensorRT/include/NvInferRuntimeCommon.h:948:24: note: overridden function is ‘virtual nvinfer1::IPluginV2* nvinfer1::IPluginCreator::createPlugin(const AsciiChar*, const nvinfer1::PluginFieldCollection*) noexcept’
948 | virtual IPluginV2* createPlugin(AsciiChar const* name, PluginFieldCollection const* fc) noexcept = 0;
| ^~~~~~~~~~~~
In file included from torch2trt/plugins/plugins.cpp:3:
torch2trt/plugins/group_norm.cpp: In member function ‘virtual nvinfer1::IPluginV2* torch2trt::GroupNormPluginCreator::deserializePlugin(const char*, const void*, size_t)’:
torch2trt/plugins/group_norm.cpp:279:58: error: invalid new-expression of abstract class type ‘torch2trt::GroupNormPlugin’
279 | return new GroupNormPlugin((const char*) data, length);
| ^
In file included from /usr/local/lib/python3.8/dist-packages/torch/include/pybind11/pybind11.h:48,
from /usr/local/lib/python3.8/dist-packages/torch/include/torch/csrc/utils/pybind.h:6,
from /usr/local/lib/python3.8/dist-packages/torch/include/torch/csrc/api/include/torch/python.h:12,
from /usr/local/lib/python3.8/dist-packages/torch/include/torch/extension.h:6,
from torch2trt/plugins/plugins.cpp:1:
/usr/local/lib/python3.8/dist-packages/torch/include/pybind11/detail/init.h: In instantiation of ‘Class* pybind11::detail::initimpl::construct_or_initialize(Args&& …) [with Class = torch2trt::InterpolatePlugin; Args = {std::vector<long int, std::allocator >, std::basic_string<char, std::char_traits, std::allocator >, bool}; typename std::enable_if<(! std::is_constructible<Tp, Args>::value), int>::type = 0]’:
/usr/local/lib/python3.8/dist-packages/torch/include/pybind11/detail/init.h:175:66: required from ‘static void pybind11::detail::initimpl::constructor::execute(Class&, const Extra& …) [with Class = pybind11::class
torch2trt::InterpolatePlugin; Extra = {pybind11::arg, pybind11::arg, pybind11::arg}; typename std::enable_if<(! Class::has_alias), int>::type = 0; Args = {std::vector<long int, std::allocator >, std::basic_string<char, std::char_traits, std::allocator >, bool}]’
/usr/local/lib/python3.8/dist-packages/torch/include/pybind11/pybind11.h:1346:9: required from ‘pybind11::class
< , >& pybind11::class_< , >::def(const pybind11::detail::initimpl::constructor<Args …>&, const Extra& …) [with Args = {std::vector<long int, std::allocator >, std::basic_string<char, std::char_traits, std::allocator >, bool}; Extra = {pybind11::arg, pybind11::arg, pybind11::arg}; type_ = torch2trt::InterpolatePlugin; options = {}]’
torch2trt/plugins/plugins.cpp:11:129: required from here
/usr/local/lib/python3.8/dist-packages/torch/include/pybind11/detail/init.h:63:64: error: invalid new-expression of abstract class type ‘torch2trt::InterpolatePlugin’
63 | line Class *construct_or_initialize(Args &&…args) { return new Class{std::forward(args)…}; }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/usr/local/lib/python3.8/dist-packages/torch/include/pybind11/detail/init.h: In instantiation of ‘Class* pybind11::detail::initimpl::construct_or_initialize(Args&& …) [with Class = torch2trt::InterpolatePlugin; Args = {const std::basic_string<char, std::char_traits, std::allocator >&}; typename std::enable_if<(! std::is_constructible<Tp, Args>::value), int>::type = 0]’:
/usr/local/lib/python3.8/dist-packages/torch/include/pybind11/detail/init.h:175:66: required from ‘static void pybind11::detail::initimpl::constructor::execute(Class&, const Extra& …) [with Class = pybind11::class
torch2trt::InterpolatePlugin; Extra = {pybind11::arg}; typename std::enable_if<(! Class::has_alias), int>::type = 0; Args = {const std::basic_string<char, std::char_traits, std::allocator >&}]’
/usr/local/lib/python3.8/dist-packages/torch/include/pybind11/pybind11.h:1346:9: required from ‘pybind11::class
< , >& pybind11::class_< , >::def(const pybind11::detail::initimpl::constructor<Args …>&, const Extra& …) [with Args = {const std::basic_string<char, std::char_traits, std::allocator >&}; Extra = {pybind11::arg}; type_ = torch2trt::InterpolatePlugin; options = {}]’
torch2trt/plugins/plugins.cpp:12:66: required from here
/usr/local/lib/python3.8/dist-packages/torch/include/pybind11/detail/init.h:63:64: error: invalid new-expression of abstract class type ‘torch2trt::InterpolatePlugin’
/usr/local/lib/python3.8/dist-packages/torch/include/pybind11/detail/init.h: In instantiation of ‘Class* pybind11::detail::initimpl::construct_or_initialize(Args&& …) [with Class = torch2trt::GroupNormPlugin; Args = {long int, at::Tensor, at::Tensor, double}; typename std::enable_if<(! std::is_constructible<Tp, Args>::value), int>::type = 0]’:
/usr/local/lib/python3.8/dist-packages/torch/include/pybind11/detail/init.h:175:66: required from ‘static void pybind11::detail::initimpl::constructor::execute(Class&, const Extra& …) [with Class = pybind11::class
torch2trt::GroupNormPlugin; Extra = {pybind11::arg, pybind11::arg, pybind11::arg, pybind11::arg}; typename std::enable_if<(! Class::has_alias), int>::type = 0; Args = {long int, at::Tensor, at::Tensor, double}]’
/usr/local/lib/python3.8/dist-packages/torch/include/pybind11/pybind11.h:1346:9: required from ‘pybind11::class
< , >& pybind11::class_< , >::def(const pybind11::detail::initimpl::constructor<Args …>&, const Extra& …) [with Args = {long int, at::Tensor, at::Tensor, double}; Extra = {pybind11::arg, pybind11::arg, pybind11::arg, pybind11::arg}; type_ = torch2trt::GroupNormPlugin; options = {}]’
torch2trt/plugins/plugins.cpp:20:144: required from here
/usr/local/lib/python3.8/dist-packages/torch/include/pybind11/detail/init.h:63:64: error: invalid new-expression of abstract class type ‘torch2trt::GroupNormPlugin’
/usr/local/lib/python3.8/dist-packages/torch/include/pybind11/detail/init.h: In instantiation of ‘Class* pybind11::detail::initimpl::construct_or_initialize(Args&& …) [with Class = torch2trt::GroupNormPlugin; Args = {const std::basic_string<char, std::char_traits, std::allocator >&}; typename std::enable_if<(! std::is_constructible<Tp, Args>::value), int>::type = 0]’:
/usr/local/lib/python3.8/dist-packages/torch/include/pybind11/detail/init.h:175:66: required from ‘static void pybind11::detail::initimpl::constructor::execute(Class&, const Extra& …) [with Class = pybind11::class
torch2trt::GroupNormPlugin; Extra = {pybind11::arg}; typename std::enable_if<(! Class::has_alias), int>::type = 0; Args = {const std::basic_string<char, std::char_traits, std::allocator >&}]’
/usr/local/lib/python3.8/dist-packages/torch/include/pybind11/pybind11.h:1346:9: required from ‘pybind11::class
< , >& pybind11::class_< , >::def(const pybind11::detail::initimpl::constructor<Args …>&, const Extra& …) [with Args = {const std::basic_string<char, std::char_traits, std::allocator >&}; Extra = {pybind11::arg}; type_ = torch2trt::GroupNormPlugin; options = {}]’
torch2trt/plugins/plugins.cpp:21:66: required from here
/usr/local/lib/python3.8/dist-packages/torch/include/pybind11/detail/init.h:63:64: error: invalid new-expression of abstract class type ‘torch2trt::GroupNormPlugin’
error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1
/home/raguhtic/torch2trt/scripts

Steps To Reproduce

Please include:

  • Exact steps/commands to build your repro
  • Exact steps/commands to run your repro
  • Full traceback of errors encountered

Hi,

We recommend you to please post your concern here to get better help.

Thank you.