原创 C++基本語法——移動語義 左值右值

這篇爲了理解,自己瞎寫的,建議看下面這篇,裏面例子很好很有用 https://blog.csdn.net/u011726005/article/details/79874539                           //這篇

原创 Pytorch部署:用C++調用Pytorch生成的模型

Loading a TorchScript Model in C++ The following paragraphs will outline the path PyTorch provides to go from an existi

原创 C/C++指針理解

指針記住兩點:指針有類型,類型定義了+1怎麼操作,跨越多少單位指針有值,指針的變量的值反應了指針的實際指向位置。 +1的時候以實際指向位置爲原點,跨越類型指示的單位個數 int b[2][3]; cout << b << endl;

原创 Linux內核、驅動、應用程序的概念和之間的聯繫

https://www.cnblogs.com/lvdongjie/p/6836058.html 驅動程序也屬於內核的一部分。準確的說是一個組件。內核通過驅動程序能實現硬件的連接和操控。 內核的目的是爲應用程序提供統一良好的運行環境,內核

原创 C++語法——strlen和sizeof

  //數組 char str[20000]="0123456789"; int a=strlen(str); //a=10 int b=sizeof(str); //而b=20000 char ss[] = "0123456789";

原创 ubuntu 更新從16.04到18.04

爲了方便的用caffe,決定把ubuntu更新了。 參考:https://wiki.ubuntu.com/BionicBeaver/ReleaseNotes?_ga=2.259821770.1396660102.1572504093-13

原创 C++語法——typedef

typedef: 定義一個類型 //typedef 定義類型 typedef int INT; typedef int(*PF)(int); //定義函數指針類型 #define A 30 //define是預處理宏,預處理階段文本

原创 ubuntu 18.04 install cuda and cudnn

https://docs.nvidia.com/deeplearning/sdk/cudnn-install/index.html https://docs.nvidia.com/cuda/