I have the following pytorch installation error. Could anyone help ?
‘qnnp_setup_add_nc_q8’ was not declared in this scope

[ 49%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/rnn/recurrent_network_blob_fetcher_op.cc.o
[ 49%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/rnn/recurrent_network_executor.cc.o
[ 49%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/rnn/recurrent_network_op.cc.o
[ 49%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/init_qnnpack.cc.o
[ 50%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_add_op.cc.o
[ 50%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_average_pool_op.cc.o
[ 50%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_channel_shuffle_op.cc.o
[ 50%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_concat_op.cc.o
[ 50%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_conv_op.cc.o
[ 50%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_conv_transpose_op.cc.o
In file included from /home/phung/Downloads/pytorch/caffe2/operators/quantized/int8_add_op.cc:3:0:
/home/phung/Downloads/pytorch/caffe2/operators/quantized/int8_add_op.h: In member function ‘bool caffe2::int8::Int8AddOp::RunOnDevice()’:
/home/phung/Downloads/pytorch/caffe2/operators/quantized/int8_add_op.h:59:40: error: there are no arguments to ‘qnnp_create_add_nc_q8’ that depend on a template parameter, so a declaration of ‘qnnp_create_add_nc_q8’ must be available [-fpermissive]
const qnnp_status createStatus = qnnp_create_add_nc_q8(
^~~~~~~~~~~~~~~~~~~~~
/home/phung/Downloads/pytorch/caffe2/operators/quantized/int8_add_op.h:59:40: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/home/phung/Downloads/pytorch/caffe2/operators/quantized/int8_add_op.h:73:37: error: there are no arguments to ‘qnnp_setup_add_nc_q8’ that depend on a template parameter, so a declaration of ‘qnnp_setup_add_nc_q8’ must be available [-fpermissive]
const qnnp_status setupStatus = qnnp_setup_add_nc_q8(
^~~~~~~~~~~~~~~~~~~~
[ 50%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_dequantize_op.cc.o
/home/phung/Downloads/pytorch/caffe2/operators/quantized/int8_add_op.h: In instantiation of ‘bool caffe2::int8::Int8AddOp::RunOnDevice() [with caffe2::int8::Activation Ac = (caffe2::int8::Activation)1]’:
/home/phung/Downloads/pytorch/caffe2/operators/quantized/int8_add_op.cc:68:1:   required from here
/home/phung/Downloads/pytorch/caffe2/operators/quantized/int8_add_op.h:59:61: error: ‘qnnp_create_add_nc_q8’ was not declared in this scope
const qnnp_status createStatus = qnnp_create_add_nc_q8(
~~~~~~~~~~~~~~~~~~~~~^
1 /* channels /,
~~~~~~~~~~~~~~~~~
A_zero_point, A_scale,
~~~~~~~~~~~~~~~~~~~~~~
B_zero_point, B_scale,
~~~~~~~~~~~~~~~~~~~~~~
static_cast<uint8_t>(Y_zero_point), Y_scale,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
activationLimits(Y_scale, Y_zero_point, Ac).first,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
activationLimits(Y_scale, Y_zero_point, Ac).second,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
&qnnpackOperator_);
~~~~~~~~~~~~~~~~~~
/home/phung/Downloads/pytorch/caffe2/operators/quantized/int8_add_op.h:73:57: error: ‘qnnp_setup_add_nc_q8’ was not declared in this scope
const qnnp_status setupStatus = qnnp_setup_add_nc_q8(
~~~~~~~~~~~~~~~~~~~~^
this->qnnpackOperator_,
~~~~~~~~~~~~~~~~~~~~~~~
A.t.numel() / batch size */,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A.t.template data<uint8_t>(),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 /* A stride */,
~~~~~~~~~~~~~~~~~
B.t.template data<uint8_t>(),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 /* B stride */,
~~~~~~~~~~~~~~~~~
Y->t.template mutable_data<uint8_t>(),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 /* Y stride */);
~~~~~~~~~~~~~~~~~
[ 50%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_fc_op.cc.o
/home/phung/Downloads/pytorch/caffe2/operators/quantized/int8_add_op.h: In instantiation of ‘bool caffe2::int8::Int8AddOp::RunOnDevice() [with caffe2::int8::Activation Ac = (caffe2::int8::Activation)0]’:
/home/phung/Downloads/pytorch/caffe2/operators/quantized/int8_add_op.cc:68:1:   required from here
/home/phung/Downloads/pytorch/caffe2/operators/quantized/int8_add_op.h:59:61: error: ‘qnnp_create_add_nc_q8’ was not declared in this scope
const qnnp_status createStatus = qnnp_create_add_nc_q8(
~~~~~~~~~~~~~~~~~~~~~^
1 /* channels /,
~~~~~~~~~~~~~~~~~
A_zero_point, A_scale,
~~~~~~~~~~~~~~~~~~~~~~
B_zero_point, B_scale,
~~~~~~~~~~~~~~~~~~~~~~
static_cast<uint8_t>(Y_zero_point), Y_scale,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
activationLimits(Y_scale, Y_zero_point, Ac).first,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
activationLimits(Y_scale, Y_zero_point, Ac).second,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
&qnnpackOperator_);
~~~~~~~~~~~~~~~~~~
/home/phung/Downloads/pytorch/caffe2/operators/quantized/int8_add_op.h:73:57: error: ‘qnnp_setup_add_nc_q8’ was not declared in this scope
const qnnp_status setupStatus = qnnp_setup_add_nc_q8(
~~~~~~~~~~~~~~~~~~~~^
this->qnnpackOperator_,
~~~~~~~~~~~~~~~~~~~~~~~
A.t.numel() / batch size */,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A.t.template data<uint8_t>(),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 /* A stride */,
~~~~~~~~~~~~~~~~~
B.t.template data<uint8_t>(),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 /* B stride */,
~~~~~~~~~~~~~~~~~
Y->t.template mutable_data<uint8_t>(),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 /* Y stride */);
~~~~~~~~~~~~~~~~~
caffe2/CMakeFiles/caffe2.dir/build.make:12990: recipe for target ‘caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_add_op.cc.o’ failed
make[2]: *** [caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_add_op.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs…
CMakeFiles/Makefile2:4589: recipe for target ‘caffe2/CMakeFiles/caffe2.dir/all’ failed
make[1]: *** [caffe2/CMakeFiles/caffe2.dir/all] Error 2
Makefile:140: recipe for target ‘all’ failed
make: *** [all] Error 2
Failed to run ‘bash …/tools/build_pytorch_libs.sh --use-cuda --use-nnpack --use-mkldnn --use-qnnpack caffe2’
phung@UbuntuHW15:~/Downloads/pytorch$