原创 spacemacs notes

ORG M + /: file name/ address auto complete C + c C + x C + v display the image org export to html css set #

原创 格雷碼

格雷碼(Gray Code) 在一組數的編碼中,若任意兩個相鄰的代碼只有一位二進制數不同,則稱這種編碼爲格雷碼(Gray Code),另外由於最大數與最小數之間也僅一位數不同,即“首尾相連”,因此又稱循環碼或反射碼。 假設原

原创 walsh函數

walsh函數: 點贊 收藏 分享 文章舉報 liudy95 發佈了54 篇原創文章 · 獲贊 12 · 訪問量 1萬+ 私信

原创 interview 知識點

C++ 知識點 內聯函數inline inline 和 宏定義#define的作用基本類似,都是替換或者展開。 在程序編譯階段,如果遇到內聯函數,則將內聯函數的實現在當前位置展開。內聯的目的是爲了減少函數的調用開銷,從而提高運行

原创 Pytorch

一機多卡 數據並行 # 假設就一個數據 data = torch.rand([16, 10, 5]) # 前向計算要求數據都放進GPU0裏面 # device = torch.device('cuda:0') # data =

原创 24點遊戲

題目描述 給出4個1-10的數字,通過加減乘除,得到數字爲24就算勝利 輸入: 4個1-10的數字。[數字允許重複,但每個數字僅允許使用一次,測試用例保證無異常數字] 輸出: true or false 輸入描述: 輸入4個int整數

原创 Chainer use note

estimate array is in GPU or CPU from chainer import backend import chainer import numpy as np a = chaienr.as_variab

原创 plotly 畫圖使用

jupyter 上使用 import plotly.plotly as py import plotly.graph_objs as go py.sign_in('用戶名', 'API Key') #https://plot.ly

原创 install zsh

sudo apt install zsh #install ohmyzsh sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master