-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added concat support to GenArch. Fixes #61
WIP #61 Started w/ concat support WIP #61 Added basic concat support WIP #61 Added quick merge-fork fn-ality WIP #64 Added nested concat support WIP #61 Added concat tests WIP #61 Added `npm run watch-test` cmd WIP #61 Fixed lint errors. Removed debugger statement
- Loading branch information
Showing
8 changed files
with
478 additions
and
32 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Git LFS file not shown
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
require 'nn' | ||
|
||
local net = nn.Sequential() | ||
net:add(nn.Reshape(100)) | ||
|
||
local net_2 = nn.Sequential() | ||
net_2:add(nn.Linear(100, 150)) | ||
net_2:add(nn.Tanh()) | ||
net_2:add(nn.Linear(150, 50)) | ||
|
||
local net_3 = nn.Sequential() | ||
net_3:add(nn.Linear(100, 150)) | ||
net_3:add(nn.Tanh()) | ||
net_3:add(nn.Linear(150, 30)) | ||
|
||
local concat_7 = nn.Concat(1) | ||
concat_7:add(net_3) | ||
concat_7:add(net_2) | ||
|
||
net:add(concat_7) | ||
net:add(nn.Tanh()) | ||
net:add(nn.Linear(80, 7)) | ||
|
||
return net |
Oops, something went wrong.