Caffe Source Code - Basic Use of Blob
Guess you're learning caffe too when you see this, hehehe! The Blob represents a 4-dimensional array in memory with dimensions from low to high (width_, height_, channels_,num_). Blob is caffe's basic storage unit, start getting your hands on it now and try it out! A Blob is a template block, so template parameters need to be formulated when creating the object. In Jo's book, it's so simple to write successfully that I expect some mistakes will be made. It's not really about the path, it's about the format, heh heh! After you have written the Blob template class. Generating an executable app gives you an error!
CAFFE_ROOT is the root directory of your previous caffe conversion.
Originally.
~/caffe$ g++ -o app blob_demo.cpp -I $CAFFE_ROOT/include/ -D CPU_ONLY -I $CAFFE_ROOT/.build_release/src/ -L $CAFFE_ROOT/build/lib/ -lcaffe
Rewrite.
~/caffe$ g++ -o app blob_demo.cpp -I/home/your-server-name/CAFFE_ROOT/include/ -D CPU_ONLY -I/home/your-server-name/CAFFE_ROOT/.build_release/src/ -L/home/your-server-name/CAFFE_ROOT/build/lib/ -lcaffe
Just rewrite it like this. After that, there will be some errors when running the change program.
Originally.
$export LD_LIBRARY_PATH=$CAFFE_ROOT/build/lib/:$LD_LIBRARY_PATH $./app
Size: (0)
Size: 1 2 3 4 (24)
Replace with.
$export LD_LIBRARY_PATH=/home/your server name/CAFFE_ROOT/build/lib/:$LD_LIBRARY_PATH $./app
Size: (0)
Size: 1 2 3 4 (24)
Will continue to update later with more questions.