-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathinit.lua
More file actions
46 lines (38 loc) · 1.29 KB
/
init.lua
File metadata and controls
46 lines (38 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
local nn = require 'nn'
local nc = {}
-- Put the submodules we want in the table of the main module
nc.distUtils = require 'nc.distUtils'
nc.layers = require 'nc.layers'
nc.decompiler = require 'nc.decompiler'
nc.optim = require 'nc.optim'
nc.utils = require 'nc.utils'
-- Include ops in the ram
torch.include('nc', 'add_op.lua')
torch.include('nc', 'dec_op.lua')
torch.include('nc', 'inc_op.lua')
torch.include('nc', 'jez_op.lua')
torch.include('nc', 'max_op.lua')
torch.include('nc', 'min_op.lua')
torch.include('nc', 'read_op.lua')
torch.include('nc', 'stop_op.lua')
torch.include('nc', 'sub_op.lua')
torch.include('nc', 'write_op.lua')
torch.include('nc', 'zero_op.lua')
-- Include the ram machine and controller to layers
torch.include('nc', 'initialModule.lua')
torch.include('nc', 'machine.lua')
torch.include('nc', 'dRAM.lua')
torch.include('nc', 'algCrit.lua')
-- Include the various optimisers
torch.include('nc', 'sgd.lua')
torch.include('nc', 'adam.lua')
torch.include('nc', 'priors.lua')
torch.include('nc', 'infinity_prior.lua')
torch.include('nc', 'softmaxed_prior.lua')
-- Include the various trainers
torch.include('nc', 'trainer.lua')
torch.include('nc', 'plotter.lua')
-- We add the test last since everything else should be ready
-- before initialising it
nc.test = require 'nc.test'
return nc