Skip to content

Instantly share code, notes, and snippets.

@daviddoria
Created May 11, 2015 16:33
Show Gist options
  • Save daviddoria/0484bedfeb4117c17510 to your computer and use it in GitHub Desktop.
Save daviddoria/0484bedfeb4117c17510 to your computer and use it in GitHub Desktop.
Demo
----------------------------------------------------------------------
-- This script demonstrates how to define a couple of different
-- models:
-- + 2-layer neural network (MLP)
--
----------------------------------------------------------------------
require 'torch' -- torch
require 'nn' -- provides all sorts of trainable modules/layers
----------------------------------------------------------------------
-- This script demonstrates how to define a couple of different
-- models:
-- + 2-layer neural network (MLP)
--
----------------------------------------------------------------------
require 'torch' -- torch
require 'nn' -- provides all sorts of trainable modules/layers
----------------------------------------------------------------------
-- parse command line arguments
--if not opt then
-- print '==> processing options'
-- cmd = torch.CmdLine()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment