Skip to content

Commit e125c48

Browse files
committed
fixes #40
1 parent 58e265d commit e125c48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

train-on-cifar/train-on-cifar.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -237,12 +237,12 @@ function display(input)
237237
if iter % 10 == 0 then
238238
if opt.model == 'convnet' then
239239
win_w1 = image.display{
240-
image=model:get(2).weight, zoom=4, nrow=10,
240+
image=model:get(1).weight, zoom=4, nrow=10,
241241
min=-1, max=1,
242242
win=win_w1, legend='stage 1: weights', padding=1
243243
}
244244
win_w2 = image.display{
245-
image=model:get(6).weight, zoom=4, nrow=30,
245+
image=model:get(4).weight, zoom=4, nrow=30,
246246
min=-1, max=1,
247247
win=win_w2, legend='stage 2: weights', padding=1
248248
}

0 commit comments

Comments
 (0)