# Tianke Youke

A Base for Secreting and Running at Night

0%

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?

Project：https://tcwang0509.github.io/vid2vid/

Project： https://nvlabs.github.io/few-shot-vid2vid

Code Typing Practice (or source code on Github: here) is a tiny web page that I wrote for fun last semester, which is for me myself to practice code typing. It is a naive Django web app (with bugs🤪). BUT! I find a service to deploy it lively today. That's what is worth noting down now.