[PyTorch] LSTM 的原理與輸入輸出格式紀錄
LSTM (Long Short-Term Memory),中文翻譯做『長短期記憶』,是一種循環神經網路 (RNN)。其論文發表於 1997 年,是在自然語言處理當中非常重要、並且好用的模型層。
Read More »[PyTorch] LSTM 的原理與輸入輸出格式紀錄LSTM (Long Short-Term Memory),中文翻譯做『長短期記憶』,是一種循環神經網路 (RNN)。其論文發表於 1997 年,是在自然語言處理當中非常重要、並且好用的模型層。
Read More »[PyTorch] LSTM 的原理與輸入輸出格式紀錄今天我在使用 Python 進行自然語言處理 (NLP) 的遇到了這個問題:
Read More »[已解決] OSError: [E050] Can't find model 'en'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory.雖然僅僅只是個人體感,不過我認為在使用 PyTorch 的過程中,最容易遇到的報錯有兩個 —— 一個是模型的 ""Mismatch、另外一個就是我今天所紀錄的:
Read More »[已解決][PyTorch] RuntimeError: Expected object of scalar type Float but got scalar type Long for argument最近在進行深度學習的模型訓練時遇到了瓶頸,最主要是『速度』的方面 —— 訓練的速度實在是快不起來。
Read More »[Linux] 將資料儲存在 RAM 當中提昇讀取速度最近由於心血來潮,開始了測試 Linux 檔案執行速度的實驗。為了避免測量速度時受到記憶體載入的影響,故查詢了一些指令來清除記憶體。
Read More »[Linux] 清除記憶體的指令今天,我在使用 PyTorch 搭建 LSTM 模型的時候發生了以下這樣的報錯:
LSTM RuntimeError: input must have 3 dimensions, got 2
Read More »[已解決][PyTorch] LSTM RuntimeError: input must have 3 dimensions, got 2在 Linux 環境中,我們經常都會寫許多自動化執行的腳本幫助我們處理各式各樣的工作。今天,我就需要在一台『本機端』的主機中自動登入遠方『伺服器』並在『伺服器上執行指令』。
Read More »[Linux] 使用 SSH 登入遠端伺服器並執行指令今天,我在使用 PyTorch 讀取一個已經訓練好的模型進行全新資料的分類時,意外地遇到了以下這個報錯:
RuntimeError: Input and parameter tensors are not at the same device, found input tensor at cuda:1 and parameter tensor at cuda:0
Read More »[已解決] RuntimeError: Input and parameter tensors are not at the same device, found input tensor at cpu and parameter tensor at cuda:0如果今天我們想要進行文字的翻譯,大部分的人想必都會不約而同地使用 『Google 翻譯』吧!畢竟一來 Google 翻譯的名聲相當響亮、二來由於近年來 NLP 相關的深度學習技術越來越成熟,Google 翻譯的品質也是逐年提昇。
Read More »[Python] 使用 googletrans 套件來進行 Google 翻譯在使用 VIM 編輯器的時候,若不偶爾玩玩 VIM 可以調整的主題顏色 "colorscheme" 就太無趣了。透過安裝主題顏色的 ".vim" 檔案在 "~/.vim/colors/" 資料夾底下,加上在 "~/.vimrc" 設定檔當中進行設定,我們就能任意調整為各式各樣的主題顏色,豐富我們使用 VIM 的體驗。
Read More »[VIM] 使用 colorscheme 設定主題顏色