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.


Recommended>>
1、17 experts predict new trends in media development for 2019 will they be buried at the bottom of the ocean or will they be the trendsetters
2、2018 World Smart Driving Challenge Kicks Off in Toray
3、Earn RMB 2000000 in one code
4、You cant figure out these ten edge issues youre really behind in communications
5、Servlet programming of the core a

    已推荐到看一看 和朋友分享想法
    最多200字,当前共 发送

    已发送

    朋友将在看一看看到

    确定
    分享你的想法...
    取消

    分享想法到看一看

    确定
    最多200字,当前共

    发送中

    网络异常,请稍后重试

    微信扫一扫
    关注该公众号