Guest User

Untitled

a guest
Apr 15th, 2019
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.54 KB | None | 0 0
  1. In file included from /home/aman/openSource/mlpack/mlpack/src/mlpack/methods/ann/loss_functions/triplet_loss.hpp:106:0,
  2. from /home/aman/openSource/mlpack/mlpack/src/mlpack/tests/loss_functions_test.cpp:24:
  3. /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&&)’:
  4. /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)’
  5. std::max(positive_distance - negative_distance + margin, 0);
  6. ^
  7. In file included from /usr/include/c++/7/bits/char_traits.h:39:0,
  8. from /usr/include/c++/7/string:40,
  9. from /usr/include/c++/7/stdexcept:39,
  10. from /home/aman/openSource/mlpack/mlpack/src/mlpack/prereqs.hpp:33,
  11. from /home/aman/openSource/mlpack/mlpack/src/mlpack/core.hpp:67,
  12. from /home/aman/openSource/mlpack/mlpack/build/src/mlpack/tests/cotire/mlpack_test_CXX_prefix.cxx:4,
  13. from /home/aman/openSource/mlpack/mlpack/build/src/mlpack/tests/cotire/mlpack_test_CXX_prefix.hxx:4:
  14. /usr/include/c++/7/bits/stl_algobase.h:219:5: note: candidate: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
  15. max(const _Tp& __a, const _Tp& __b)
  16. ^~~
  17. /usr/include/c++/7/bits/stl_algobase.h:219:5: note: template argument deduction/substitution failed:
  18. In file included from /home/aman/openSource/mlpack/mlpack/src/mlpack/methods/ann/loss_functions/triplet_loss.hpp:106:0,
  19. from /home/aman/openSource/mlpack/mlpack/src/mlpack/tests/loss_functions_test.cpp:24:
  20. /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’)
  21. std::max(positive_distance - negative_distance + margin, 0);
  22. ^
  23. In file included from /usr/include/c++/7/bits/char_traits.h:39:0,
  24. from /usr/include/c++/7/string:40,
  25. from /usr/include/c++/7/stdexcept:39,
  26. from /home/aman/openSource/mlpack/mlpack/src/mlpack/prereqs.hpp:33,
  27. from /home/aman/openSource/mlpack/mlpack/src/mlpack/core.hpp:67,
  28. from /home/aman/openSource/mlpack/mlpack/build/src/mlpack/tests/cotire/mlpack_test_CXX_prefix.cxx:4,
  29. from /home/aman/openSource/mlpack/mlpack/build/src/mlpack/tests/cotire/mlpack_test_CXX_prefix.hxx:4:
  30. /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)
  31. max(const _Tp& __a, const _Tp& __b, _Compare __comp)
  32. ^~~
  33. /usr/include/c++/7/bits/stl_algobase.h:265:5: note: template argument deduction/substitution failed:
  34. In file included from /home/aman/openSource/mlpack/mlpack/src/mlpack/methods/ann/loss_functions/triplet_loss.hpp:106:0,
  35. from /home/aman/openSource/mlpack/mlpack/src/mlpack/tests/loss_functions_test.cpp:24:
  36. /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’)
  37. std::max(positive_distance - negative_distance + margin, 0);
  38. ^
  39. In file included from /usr/include/c++/7/algorithm:62:0,
  40. from /usr/include/boost/archive/detail/helper_collection.hpp:23,
  41. from /usr/include/boost/archive/detail/basic_iarchive.hpp:28,
  42. from /usr/include/boost/serialization/map.hpp:24,
  43. from /home/aman/openSource/mlpack/mlpack/src/mlpack/prereqs.hpp:79,
  44. from /home/aman/openSource/mlpack/mlpack/src/mlpack/core.hpp:67,
  45. from /home/aman/openSource/mlpack/mlpack/build/src/mlpack/tests/cotire/mlpack_test_CXX_prefix.cxx:4,
  46. from /home/aman/openSource/mlpack/mlpack/build/src/mlpack/tests/cotire/mlpack_test_CXX_prefix.hxx:4:
  47. /usr/include/c++/7/bits/stl_algo.h:3462:5: note: candidate: template<class _Tp> _Tp std::max(std::initializer_list<_Tp>)
  48. max(initializer_list<_Tp> __l)
  49. ^~~
  50. /usr/include/c++/7/bits/stl_algo.h:3462:5: note: template argument deduction/substitution failed:
  51. In file included from /home/aman/openSource/mlpack/mlpack/src/mlpack/methods/ann/loss_functions/triplet_loss.hpp:106:0,
  52. from /home/aman/openSource/mlpack/mlpack/src/mlpack/tests/loss_functions_test.cpp:24:
  53. /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>’
  54. std::max(positive_distance - negative_distance + margin, 0);
  55. ^
  56. In file included from /usr/include/c++/7/algorithm:62:0,
  57. from /usr/include/boost/archive/detail/helper_collection.hpp:23,
  58. from /usr/include/boost/archive/detail/basic_iarchive.hpp:28,
  59. from /usr/include/boost/serialization/map.hpp:24,
  60. from /home/aman/openSource/mlpack/mlpack/src/mlpack/prereqs.hpp:79,
  61. from /home/aman/openSource/mlpack/mlpack/src/mlpack/core.hpp:67,
  62. from /home/aman/openSource/mlpack/mlpack/build/src/mlpack/tests/cotire/mlpack_test_CXX_prefix.cxx:4,
  63. from /home/aman/openSource/mlpack/mlpack/build/src/mlpack/tests/cotire/mlpack_test_CXX_prefix.hxx:4:
  64. /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)
  65. max(initializer_list<_Tp> __l, _Compare __comp)
  66. ^~~
  67. /usr/include/c++/7/bits/stl_algo.h:3468:5: note: template argument deduction/substitution failed:
  68. In file included from /home/aman/openSource/mlpack/mlpack/src/mlpack/methods/ann/loss_functions/triplet_loss.hpp:106:0,
  69. from /home/aman/openSource/mlpack/mlpack/src/mlpack/tests/loss_functions_test.cpp:24:
  70. /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>’
  71. std::max(positive_distance - negative_distance + margin, 0);
  72. ^
  73. /home/aman/openSource/mlpack/mlpack/src/mlpack/methods/ann/loss_functions/triplet_loss_impl.hpp: At global scope:
  74. /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>’
  75. void TripletLoss<InputDataType, OutputDataType>::Backward(
  76. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  77. In file included from /home/aman/openSource/mlpack/mlpack/src/mlpack/tests/loss_functions_test.cpp:24:0:
  78. /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&&)
  79. void Backward(const InputType&& anchor,
  80. ^~~~~~~~
  81. In file included from /home/aman/openSource/mlpack/mlpack/src/mlpack/methods/ann/loss_functions/triplet_loss.hpp:106:0,
  82. from /home/aman/openSource/mlpack/mlpack/src/mlpack/tests/loss_functions_test.cpp:24:
  83. /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>]’:
  84. /home/aman/openSource/mlpack/mlpack/src/mlpack/tests/loss_functions_test.cpp:414:92: required from here
  85. /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
  86. metric::SquaredEuclideanDistance::Evaluate(anchor, positive);
  87. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
  88. /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
  89. metric::SquaredEuclideanDistance::Evaluate(anchor, negative);
Add Comment
Please, Sign In to add comment