0%

Reference: https://stackoverflow.com/questions/48302810/whats-the-difference-between-hidden-and-output-in-pytorch-lstm

I was so confused when doing a homework on implementing the Luong Attention, because it tells that the decoder is a RNN, which takes \(y_{t-1}\) and \(s_{t-1}\) as input, and outputs \(s_t\), i.e., \(s_t = RNN(y_{t-1}, s_{t-1})\).

But the pytorch implementation of RNN is: \(outputs, hidden\_last = RNN(inputs, hidden\_init)\), which takes in a sequence of elements, computes in serials, and outputs a sequence also.

I was confused about what is the \(s_t\). Is it the \(outputs\), or the \(hidden\_states\)?

阅读全文 »

According to https://dev.to/rubberduck/using-usb-with-docker-for-mac-3fdd, it seems impossible to forward USB to a Docker container on MacOS, coz the Docker is running in a virtual environment via hyperkit.

First of all, ports of the host (i.e., MacOS) cannot be directly accessed by any virtual environment (i.e., Docker) on it. So, "you first have to expose it to the virtual machine where Docker is running". However, Docker is running on hyperkit, which doesn't support usb forwarding.

The author provided another way to do it, that is to usedocker-machine, which uses a Virtualbox VM to host the dockerd daemon, to replace the original docker. Then... why bother still using Docker, instead of just using Virtualbox to run the seperated environment?

我放弃理解很多东西

我开始拥抱

惊人的复杂性

这两天列了一个名叫「精神状况」的歌单,顾名思义,遴选了大抵是最能有效表达我近来精神状况的9首歌(不出所料以摇滚为主)。奇妙的是,一方面我自诩听歌时对歌词甚是重视,另一方面最爱的歌竟然歌词含量不足50%。想想现实,或许是我放弃理解很多东西(用理性),开始拥抱复杂性了吧(用感性?)。

阅读全文 »

我放弃理解很多东西

我开始拥抱

惊人的复杂性