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 ubuntu:19.10 | |
RUN apt-get update && \ | |
apt-get --yes --no-install-recommends install build-essential wget && \ | |
apt-get clean && \ | |
rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* | |
RUN wget --no-check-certificate https://dl.bintray.com/boostorg/release/1.72.0/source/boost_1_72_0.tar.gz && \ | |
tar xf boost_1_72_0.tar.gz && \ | |
cd boost_1_72_0/ && \ |
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
import argparse | |
import os | |
import random | |
| |
import pytorch_pfn_extras as ppe | |
import pytorch_pfn_extras.training.extensions as extensions | |
import pytorch_pfn_extras.training.triggers as triggers | |
import torch | |
import torch.nn as nn | |
import torch.nn.functional as F |
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
import argparse | |
import time | |
import numpy | |
import chainer | |
from WaveGlow import Glow | |
import params | |
parser = argparse.ArgumentParser() |
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
import tensorflow as tf | |
from tensorflow.keras.layers import Conv1D | |
class CausalConv(tf.keras.Model): | |
def __init__(self): | |
super(CausalConv, self).__init__() | |
self.conv = Conv1D(filters=16, kernel_size=2, padding='causal') | |
def call(self, x): |
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
function tensorboard() { | |
docker run \ | |
-v $(readlink -f $1):$(readlink -f $1) \ | |
-p ${2:-6006}:6006 \ | |
-d \ | |
--rm \ | |
--name ${2:-6006} \ | |
-it tensorflow/tensorflow:1.8.0-devel-py3 \ | |
tensorboard --logdir=$(readlink -f $1) | |
} |
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
function chainerui() { | |
docker run \ | |
-v $(readlink -f $1):$(readlink -f $1) \ | |
-p ${2:-5000}:5000 \ | |
-d \ | |
--rm \ | |
--name ${2:-5000} \ | |
-it chainer/chainerui:v0.4.0 \ | |
bash -c \ | |
"chainerui project create -d $(readlink -f $1); |