New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
flashlight/flashlight/fl/tensor/backend/af/ArrayFireReductions.cpp:271:35: error: #1170
Comments
This is the full output: |
Hello! When I executed make -j, I encountered an error:
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/af/ArrayFireReductions.cpp: In member function ‘virtual fl::Tensor fl::ArrayFireBackend::std(const fl::Tensor&, const std::vector&, bool)’:
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/af/ArrayFireReductions.cpp:271:35: error: too many arguments to function ‘T af::stdev(const af::array&) [with T = double]’
271 | double out = af::stdev(toArray(input), biasMode);
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/af/ArrayFireTensor.h:12,
from /mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/af/ArrayFireReductions.cpp:15:
/mnt/workspace/liuhw/others/arrayfire/include/af/statistics.h:185:9: note: declared here
185 | AFAPI T stdev(const array& in);
| ^~~~~
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/af/ArrayFireReductions.cpp:278:22: error: no matching function for call to ‘stdev(const af::array&, af_var_bias&, const value_type&)’
278 | af::stdev(toArray(input), biasMode, axes[0]), keepDims),
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/af/ArrayFireTensor.h:12,
from /mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/af/ArrayFireReductions.cpp:15:
/mnt/workspace/liuhw/others/arrayfire/include/af/statistics.h:185:9: note: candidate: ‘template T af::stdev(const af::array&)’
185 | AFAPI T stdev(const array& in);
| ^~~~~
/mnt/workspace/liuhw/others/arrayfire/include/af/statistics.h:185:9: note: template argument deduction/substitution failed:
/mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/af/ArrayFireReductions.cpp:278:22: note: candidate expects 1 argument, 3 provided
278 | af::stdev(toArray(input), biasMode, axes[0]), keepDims),
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/af/ArrayFireTensor.h:12,
from /mnt/workspace/liuhw/flashlight/flashlight/fl/tensor/backend/af/ArrayFireReductions.cpp:15:
/mnt/workspace/liuhw/others/arrayfire/include/af/statistics.h:101:13: note: candidate: ‘af::array af::stdev(const af::array&, dim_t)’
101 | AFAPI array stdev(const array& in, const dim_t dim=-1);
| ^~~~~
how can i solve this problem?
The text was updated successfully, but these errors were encountered: