Added basic torch import functionality. Fixes #3

WIP #3. Added import tests

WIP #3 Added more test-cases

WIP #3 Added more tests

WIP #3. Fixed concat.lua test

WIP #3 minor changes

WIP #3 Fixed concat-parallel.lua

WIP #3 Added check-model helper

WIP #3 Added more tests for model checker

WIP #3 Added extra tests

WIP #3 Changed check-model to GraphChecker

WIP #3. multiple cases fail for ImportTorch...

WIP #3 Fixed ImportTorch batch test case running

WIP #3 Changed graph checker to use gme path for id

WIP #3 Updated tests

WIP #3. Tweaked to get all examples working locally w/ 'th'

WIP #3 Fixed tests
Esse commit está contido em:
Brian Broll
2016-03-27 18:30:26 -05:00
commit 09b6ca0ad0
48 arquivos alterados com 6059 adições e 157 exclusões
+13
Ver Arquivo
@@ -0,0 +1,13 @@
require 'nn'
-- dummy values
local ninputs = 100
local nhiddens = 300
local noutputs = 10
-- Simple 2-layer neural network, with tanh hidden units
model = nn.Sequential()
model:add(nn.Reshape(ninputs)) -- can these be added behind the scenes?
model:add(nn.Linear(ninputs,nhiddens))
model:add(nn.Tanh())
model:add(nn.Linear(nhiddens,noutputs))