
GPU 適合平行處理,像如矩陣乘法
CUDA - 很難寫出高效能的 code
OpenCL






Tensorflow or Theano 的包裝









if torch.cuda.is_available(): device = torch.device('cuda:0') else: device = torch.device('cpu') net = Net(0, 1, embed_list).to(device=device)
| 動態圖 | 靜態圖 |
|---|---|
| 程式碼簡單 | 效率比較高 |
| 程式碼靈活 | 可以被序列化 |




很好產品化,但近年研究人員用的不多

