tiny-dnn icon indicating copy to clipboard operation
tiny-dnn copied to clipboard

Examples Compilation Error - Cereal

Open lironmo opened this issue 7 years ago • 0 comments

hello, I am trying to compile the Examples and get the following error:

required from ‘void tiny_dnn::network<NetType>::load(const string&, tiny_dnn::content_type, tiny_dnn::file_format) [with NetType = tiny_dnn::sequential; std::__cxx11::string = std::__cxx11::basic_string]’ /home/liron/work/pixoneye/lod-tiny-dnn/tiny-dnn/examples/mnist/test.cpp:37:21: required from here /home/liron/work/pixoneye/lod-tiny-dnn/tiny-dnn/cereal/access.hpp:293:9: error: no matching function for call to ‘tiny_dnn::elementwise_add_layer::elementwise_add_layer(long unsigned int&, long unsigned int&)’ new (ptr) T( std::forward<Args>( args )... ); ^ In file included from /home/liron/work/pixoneye/lod-tiny-dnn/tiny-dnn/tiny_dnn/tiny_dnn.h:30:0, from /home/liron/work/pixoneye/lod-tiny-dnn/tiny-dnn/examples/mnist/test.cpp:10:

any idea why it's failed?

my workaround is to set use_cereal=false in cmake.

Thanks

lironmo avatar May 01 '18 11:05 lironmo