Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In file included from /home/aman/openSource/mlpack/mlpack/src/mlpack/methods/ann/loss_functions/triplet_loss.hpp:106:0,
- from /home/aman/openSource/mlpack/mlpack/src/mlpack/tests/loss_functions_test.cpp:24:
- /home/aman/openSource/mlpack/mlpack/src/mlpack/methods/ann/loss_functions/triplet_loss_impl.hpp: In member function ‘double mlpack::ann::TripletLoss<InputDataType, OutputDataType>::Forward(const InputType&&, const InputType&&, const InputType&&)’:
- /home/aman/openSource/mlpack/mlpack/src/mlpack/methods/ann/loss_functions/triplet_loss_impl.hpp:44:65: error: no matching function for call to ‘max(arma::enable_if2<true, const arma::eOp<arma::eGlue<arma::Mat<double>, arma::Mat<double>, arma::eglue_minus>, arma::eop_scalar_plus> >::result, int)’
- std::max(positive_distance - negative_distance + margin, 0);
- ^
- In file included from /usr/include/c++/7/bits/char_traits.h:39:0,
- from /usr/include/c++/7/string:40,
- from /usr/include/c++/7/stdexcept:39,
- from /home/aman/openSource/mlpack/mlpack/src/mlpack/prereqs.hpp:33,
- from /home/aman/openSource/mlpack/mlpack/src/mlpack/core.hpp:67,
- from /home/aman/openSource/mlpack/mlpack/build/src/mlpack/tests/cotire/mlpack_test_CXX_prefix.cxx:4,
- from /home/aman/openSource/mlpack/mlpack/build/src/mlpack/tests/cotire/mlpack_test_CXX_prefix.hxx:4:
- /usr/include/c++/7/bits/stl_algobase.h:219:5: note: candidate: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
- max(const _Tp& __a, const _Tp& __b)
- ^~~
- /usr/include/c++/7/bits/stl_algobase.h:219:5: note: template argument deduction/substitution failed:
- In file included from /home/aman/openSource/mlpack/mlpack/src/mlpack/methods/ann/loss_functions/triplet_loss.hpp:106:0,
- from /home/aman/openSource/mlpack/mlpack/src/mlpack/tests/loss_functions_test.cpp:24:
- /home/aman/openSource/mlpack/mlpack/src/mlpack/methods/ann/loss_functions/triplet_loss_impl.hpp:44:65: note: deduced conflicting types for parameter ‘const _Tp’ (‘arma::eOp<arma::eGlue<arma::Mat<double>, arma::Mat<double>, arma::eglue_minus>, arma::eop_scalar_plus>’ and ‘int’)
- std::max(positive_distance - negative_distance + margin, 0);
- ^
- In file included from /usr/include/c++/7/bits/char_traits.h:39:0,
- from /usr/include/c++/7/string:40,
- from /usr/include/c++/7/stdexcept:39,
- from /home/aman/openSource/mlpack/mlpack/src/mlpack/prereqs.hpp:33,
- from /home/aman/openSource/mlpack/mlpack/src/mlpack/core.hpp:67,
- from /home/aman/openSource/mlpack/mlpack/build/src/mlpack/tests/cotire/mlpack_test_CXX_prefix.cxx:4,
- from /home/aman/openSource/mlpack/mlpack/build/src/mlpack/tests/cotire/mlpack_test_CXX_prefix.hxx:4:
- /usr/include/c++/7/bits/stl_algobase.h:265:5: note: candidate: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
- max(const _Tp& __a, const _Tp& __b, _Compare __comp)
- ^~~
- /usr/include/c++/7/bits/stl_algobase.h:265:5: note: template argument deduction/substitution failed:
- In file included from /home/aman/openSource/mlpack/mlpack/src/mlpack/methods/ann/loss_functions/triplet_loss.hpp:106:0,
- from /home/aman/openSource/mlpack/mlpack/src/mlpack/tests/loss_functions_test.cpp:24:
- /home/aman/openSource/mlpack/mlpack/src/mlpack/methods/ann/loss_functions/triplet_loss_impl.hpp:44:65: note: deduced conflicting types for parameter ‘const _Tp’ (‘arma::eOp<arma::eGlue<arma::Mat<double>, arma::Mat<double>, arma::eglue_minus>, arma::eop_scalar_plus>’ and ‘int’)
- std::max(positive_distance - negative_distance + margin, 0);
- ^
- In file included from /usr/include/c++/7/algorithm:62:0,
- from /usr/include/boost/archive/detail/helper_collection.hpp:23,
- from /usr/include/boost/archive/detail/basic_iarchive.hpp:28,
- from /usr/include/boost/serialization/map.hpp:24,
- from /home/aman/openSource/mlpack/mlpack/src/mlpack/prereqs.hpp:79,
- from /home/aman/openSource/mlpack/mlpack/src/mlpack/core.hpp:67,
- from /home/aman/openSource/mlpack/mlpack/build/src/mlpack/tests/cotire/mlpack_test_CXX_prefix.cxx:4,
- from /home/aman/openSource/mlpack/mlpack/build/src/mlpack/tests/cotire/mlpack_test_CXX_prefix.hxx:4:
- /usr/include/c++/7/bits/stl_algo.h:3462:5: note: candidate: template<class _Tp> _Tp std::max(std::initializer_list<_Tp>)
- max(initializer_list<_Tp> __l)
- ^~~
- /usr/include/c++/7/bits/stl_algo.h:3462:5: note: template argument deduction/substitution failed:
- In file included from /home/aman/openSource/mlpack/mlpack/src/mlpack/methods/ann/loss_functions/triplet_loss.hpp:106:0,
- from /home/aman/openSource/mlpack/mlpack/src/mlpack/tests/loss_functions_test.cpp:24:
- /home/aman/openSource/mlpack/mlpack/src/mlpack/methods/ann/loss_functions/triplet_loss_impl.hpp:44:65: note: ‘arma::eOp<arma::eGlue<arma::Mat<double>, arma::Mat<double>, arma::eglue_minus>, arma::eop_scalar_plus>’ is not derived from ‘std::initializer_list<_Tp>’
- std::max(positive_distance - negative_distance + margin, 0);
- ^
- In file included from /usr/include/c++/7/algorithm:62:0,
- from /usr/include/boost/archive/detail/helper_collection.hpp:23,
- from /usr/include/boost/archive/detail/basic_iarchive.hpp:28,
- from /usr/include/boost/serialization/map.hpp:24,
- from /home/aman/openSource/mlpack/mlpack/src/mlpack/prereqs.hpp:79,
- from /home/aman/openSource/mlpack/mlpack/src/mlpack/core.hpp:67,
- from /home/aman/openSource/mlpack/mlpack/build/src/mlpack/tests/cotire/mlpack_test_CXX_prefix.cxx:4,
- from /home/aman/openSource/mlpack/mlpack/build/src/mlpack/tests/cotire/mlpack_test_CXX_prefix.hxx:4:
- /usr/include/c++/7/bits/stl_algo.h:3468:5: note: candidate: template<class _Tp, class _Compare> _Tp std::max(std::initializer_list<_Tp>, _Compare)
- max(initializer_list<_Tp> __l, _Compare __comp)
- ^~~
- /usr/include/c++/7/bits/stl_algo.h:3468:5: note: template argument deduction/substitution failed:
- In file included from /home/aman/openSource/mlpack/mlpack/src/mlpack/methods/ann/loss_functions/triplet_loss.hpp:106:0,
- from /home/aman/openSource/mlpack/mlpack/src/mlpack/tests/loss_functions_test.cpp:24:
- /home/aman/openSource/mlpack/mlpack/src/mlpack/methods/ann/loss_functions/triplet_loss_impl.hpp:44:65: note: ‘arma::eOp<arma::eGlue<arma::Mat<double>, arma::Mat<double>, arma::eglue_minus>, arma::eop_scalar_plus>’ is not derived from ‘std::initializer_list<_Tp>’
- std::max(positive_distance - negative_distance + margin, 0);
- ^
- /home/aman/openSource/mlpack/mlpack/src/mlpack/methods/ann/loss_functions/triplet_loss_impl.hpp: At global scope:
- /home/aman/openSource/mlpack/mlpack/src/mlpack/methods/ann/loss_functions/triplet_loss_impl.hpp:51:6: error: prototype for ‘void mlpack::ann::TripletLoss<InputDataType, OutputDataType>::Backward(const InputType&&, const InputType&&, const InputType&&, OutputType&&)’ does not match any in class ‘mlpack::ann::TripletLoss<InputDataType, OutputDataType>’
- void TripletLoss<InputDataType, OutputDataType>::Backward(
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- In file included from /home/aman/openSource/mlpack/mlpack/src/mlpack/tests/loss_functions_test.cpp:24:0:
- /home/aman/openSource/mlpack/mlpack/src/mlpack/methods/ann/loss_functions/triplet_loss.hpp:73:8: error: candidate is: template<class InputDataType, class OutputDataType> template<class InputType, class TargetType, class OutputType> void mlpack::ann::TripletLoss<InputDataType, OutputDataType>::Backward(const InputType&&, const InputType&&, const InputType&&, OutputType&&)
- void Backward(const InputType&& anchor,
- ^~~~~~~~
- In file included from /home/aman/openSource/mlpack/mlpack/src/mlpack/methods/ann/loss_functions/triplet_loss.hpp:106:0,
- from /home/aman/openSource/mlpack/mlpack/src/mlpack/tests/loss_functions_test.cpp:24:
- /home/aman/openSource/mlpack/mlpack/src/mlpack/methods/ann/loss_functions/triplet_loss_impl.hpp: In instantiation of ‘double mlpack::ann::TripletLoss<InputDataType, OutputDataType>::Forward(const InputType&&, const InputType&&, const InputType&&) [with InputType = arma::Mat<double>; InputDataType = arma::Mat<double>; OutputDataType = arma::Mat<double>]’:
- /home/aman/openSource/mlpack/mlpack/src/mlpack/tests/loss_functions_test.cpp:414:92: required from here
- /home/aman/openSource/mlpack/mlpack/src/mlpack/methods/ann/loss_functions/triplet_loss_impl.hpp:38:49: error: conversion from ‘arma::Mat<double>::elem_type {aka double}’ to non-scalar type ‘arma::mat {aka arma::Mat<double>}’ requested
- metric::SquaredEuclideanDistance::Evaluate(anchor, positive);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
- /home/aman/openSource/mlpack/mlpack/src/mlpack/methods/ann/loss_functions/triplet_loss_impl.hpp:41:50: error: conversion from ‘arma::Mat<double>::elem_type {aka double}’ to non-scalar type ‘arma::mat {aka arma::Mat<double>}’ requested
- metric::SquaredEuclideanDistance::Evaluate(anchor, negative);
Add Comment
Please, Sign In to add comment