TF2 GloVe embedding layer

This is how to create an word2vec embedding layer in Tensorflow 2.x, using the GloVe vectors. Assume we downloaded the GloVe data from the web, for example glove.6B.zip of 6B tokens, 400K vocab from Wikipedia data, then we can build a matrix of floats and a word mapping dictionary from... [more]

keras port to tensorflow 2

I am working on some keras code but seems it is better to use tensorflow.keras for some reasons. So my problem is how to port keras.* into tensorflow.keras.* quick and easy, assuming Tensorflow 2 of course. [more]

A strange case in DD-WRT

The Linux kernel in DD-WRT is a customized one. Some patch is applied and not used elsewhere, not to mention on the upstream. This is what bothered me a whole night to debug on a strange case in networking. [more]

Publishing a python package

When time has come, we may want to publish a python project as a package onto PyPI. While a lot of my work were proprietary, there is finally a good project that I can publish and this is what to do to put it up: [more]