Skip to content

Instantly share code, notes, and snippets.

@skn123
Created July 2, 2018 07:21
Show Gist options
  • Save skn123/468da66eb7f1027569991c90e93fd06b to your computer and use it in GitHub Desktop.
Save skn123/468da66eb7f1027569991c90e93fd06b to your computer and use it in GitHub Desktop.
fft enable error
/home/naths/sandbox/caffe_copy/src/caffe/layers/conv_layer_fft.cpp:402:15: error:
no member named 'backward_cpu_bias' in
'caffe::ConvolutionLayerFFT<caffe::half_fp, caffe::half_fp,
caffe::half_fp>'
this->backward_cpu_bias(bias_diff, top_diff + n * this->top_dim_);
~~~~ ^
/home/naths/sandbox/caffe_copy/src/caffe/layers/conv_layer_fft.cpp:446:30: note:
in instantiation of member function
'caffe::ConvolutionLayerFFT<caffe::half_fp, caffe::half_fp,
caffe::half_fp>::Backward_cpu' requested here
INSTANTIATE_CLASS_3T_GUARDED(ConvolutionLayerFFT, (half_fp), (half_fp), ...
^
/home/naths/sandbox/caffe_copy/src/caffe/layers/conv_layer_fft.cpp:409:17: error:
no member named 'weight_cpu_gemm' in
'caffe::ConvolutionLayerFFT<caffe::half_fp, caffe::half_fp,
caffe::half_fp>'
this->weight_cpu_gemm(bottom_data + n * this->bottom_dim_,
~~~~ ^
/home/naths/sandbox/caffe_copy/src/caffe/layers/conv_layer_fft.cpp:277:11: error:
no member named 'forward_cpu_bias' in
'caffe::ConvolutionLayerFFT<caffe::half_fp, caffe::half_fp,
caffe::half_fp>'
this->forward_cpu_bias(top_data + top_data_offset, bias);
~~~~ ^
@skn123
Copy link
Author

skn123 commented Jul 2, 2018

If I enable DOUBLE I get these errors

/home/naths/sandbox/caffe_copy/src/caffe/backend/device_math_blas1.cpp:142:68: error:
too few arguments to function call, expected at least 5, have 3
this->template GetLibDNNBlas<double, double>()->axpby(n, alpha, x);

/home/naths/sandbox/caffe_copy/include/caffe/libdnn/libdnn_blas.hpp:23:3: note: 
    'axpby' declared here
void axpby(const uint_tp n, const MItype alpha, vptr<const MItype> x,
^
/home/naths/sandbox/caffe_copy/src/caffe/backend/device_math.cpp:278:37: error: 
    too many arguments to function call, expected 4, have 7
this->axpy_double(n, alpha, x, y, alpha_quant, x_quant, y_quant);
~~~~~~~~~~~~~~~~~                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/device.hpp:467:3: note: 
    'axpy_double' declared here
virtual void axpy_double(const uint_tp n, const double alpha,
^
/home/naths/sandbox/caffe_copy/src/caffe/backend/device_math.cpp:288:44: error: 
    too many arguments to function call, expected 5, have 9
this->axpby_double(n, alpha, x, beta, y, alpha_quant, x_quant,
~~~~~~~~~~~~~~~~~~                       ^~~~~~~~~~~~~~~~~~~~~
/home/naths/sandbox/caffe_copy/include/caffe/backend/device.hpp:469:3: note: 
    'axpby_double' declared here
virtual void axpby_double(const uint_tp n, const double alpha,
^

> 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment