CNTK icon indicating copy to clipboard operation
CNTK copied to clipboard

compile error

Open nichongjia opened this issue 10 years ago • 1 comments

Source/CNTKv2LibraryDll/API/CNTKLibrary.h:1153:122: error: converting to ‘const std::unordered_setCNTK::Variable’ from initializer list would use explicit constructor ‘std::unordered_set<_Value, _Hash, _Pred, _Alloc>::unordered_set(std::unordered_set<_Value, _Hash, _Pred, _Alloc>::size_type, const hasher&, const key_equal&, const allocator_type&) [with _Value = CNTK::Variable; _Hash = std::hashCNTK::Variable; _Pred = std::equal_toCNTK::Variable; _Alloc = std::allocatorCNTK::Variable; std::unordered_set<_Value, _Hash, _Pred, _Alloc>::size_type = long unsigned int; std::unordered_set<_Value, _Hash, _Pred, _Alloc>::hasher = std::hashCNTK::Variable; std::unordered_set<_Value, _Hash, _Pred, _Alloc>::key_equal = std::equal_toCNTK::Variable; std::unordered_set<_Value, _Hash, _Pred, _Alloc>::allocator_type = std::allocatorCNTK::Variable]’

const std::unordered_set& outputsToRetainBackwardStateFor = {}) = 0; ^ make: *** [.build/Source/CNTKv2LibraryDll/Common.o] Error 1

nichongjia avatar Jul 20 '16 02:07 nichongjia

This is fixed on master. Please use gcc 4.8. Thanks!

eldakms avatar Aug 17 '16 11:08 eldakms