This file contains 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
// LABjs.jquery.ready -- adds .ready() to $LAB api for wrapping a .wait() and a $(document).ready(...) together | |
// v0.0.1 (c) Kyle Simpson | |
// MIT License | |
(function(global){ | |
var oDOC = global.document; | |
if (!global.$LAB || !global.jQuery) return; // only adapt LABjs if LABjs exists and jQuery is present | |
function wrap_API(obj) { | |
var ret = { |
This file contains 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
import torch | |
import torch.nn as nn | |
from torch.autograd import Variable | |
from torch.nn import functional as F | |
""" | |
Blog post: | |
Taming LSTMs: Variable-sized mini-batches and why PyTorch is good for your health: | |
https://medium.com/@_willfalcon/taming-lstms-variable-sized-mini-batches-and-why-pytorch-is-good-for-your-health-61d35642972e | |
""" |
This file contains 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
ARG UBUNTU_VERSION=18.04 | |
ARG CUDA_VERSION=10.2 | |
FROM nvidia/cuda:${CUDA_VERSION}-base-ubuntu${UBUNTU_VERSION} | |
# An ARG declared before a FROM is outside of a build stage, | |
# so it can’t be used in any instruction after a FROM | |
ARG USER=reasearch_monster | |
ARG PASSWORD=${USER}123$ | |
ARG PYTHON_VERSION=3.8 | |
# To use the default value of an ARG declared before the first FROM, | |
# use an ARG instruction without a value inside of a build stage: |