This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM alpine:3.14 | |
| ENV AWSCLI_VERSION "1.20.7" | |
| RUN apk add --update \ | |
| python3 \ | |
| python3-dev \ | |
| py-pip \ | |
| build-base \ | |
| && pip install awscli==$AWSCLI_VERSION --upgrade --user \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --[[ | |
| This layer expects an [n x d] Tensor and normalizes each | |
| row to have unit L2 norm. | |
| ]]-- | |
| local L2Normalize, parent = torch.class('nn.L2Normalize', 'nn.Module') | |
| function L2Normalize:__init() | |
| parent.__init(self) | |
| end | |
| function L2Normalize:updateOutput(input) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --[[ | |
| Efficient LSTM in Torch using nngraph library. This code was optimized | |
| by Justin Johnson (@jcjohnson) based on the trick of batching up the | |
| LSTM GEMMs, as also seen in my efficient Python LSTM gist. | |
| --]] | |
| function LSTM.fast_lstm(input_size, rnn_size) | |
| local x = nn.Identity()() | |
| local prev_c = nn.Identity()() | |
| local prev_h = nn.Identity()() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| This is a Python script to extract GNOME/GTK's color scheme and apply it to Wine, so that the themes (approximately) match. | |
| Instructions: | |
| 1. Set your Gnome theme as you would like it | |
| 2. Run with a command like "python wine_colors_from_gtk.py" | |
| 3. Restart any apps running in Wine. They should match the Gnome theme colors now. | |
| Better description with screenshots here: http://www.endolith.com/wordpress/2008/08/03/wine-colors/ | |
| This is also stored on https://code.launchpad.net/~endolith/+junk/wine-color-scraper |