Skip to content

Instantly share code, notes, and snippets.

In order to reproduce results, run code from this repo:
https://github.com/ikostrikov/pytorch-naf
require 'image'
require 'torch'
require 'nn'
require 'nngraph'
require 'optim'
require 'recurrent'
local cmd = torch.CmdLine()
cmd:text()
cmd:text('Training a simple character-level LSTM language model')