Skip to content

Commit

Permalink
WIP #998 Added test case
Browse files Browse the repository at this point in the history
  • Loading branch information
brollb committed Mar 31, 2017
1 parent 180bad4 commit 03fe2f4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
Binary file modified src/seeds/devTests/devTests.webgmex
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ describe('GenerateArchitecture', function () {
//['/8', 'basic-transfers.lua'],
//['/M', 'concat-parallel.lua'],
['/Q', 'basiccontainer.lua'],
['/P', 'ContainerWithLayerArgs.lua'],
['/4', 'requiredOmitted.lua'],
['/e', 'googlenet.lua'],
['/X', 'overfeat.lua']
Expand Down
13 changes: 13 additions & 0 deletions test/test-cases/generated-code/ContainerWithLayerArgs.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
require 'nn'
require 'rnn'

local m = nn.Sequential()
m:add(nn.Linear(100, 50))
m:add(nn.LeakyReLU())
m:add(nn.Linear(50, 10))


local net = nn.Sequential()
net:add(nn.Bottle(m, 2))

return net

0 comments on commit 03fe2f4

Please sign in to comment.