Skip to content

Commit

Permalink
Merge pull request #661 from gheinrich/dev/torch-val-batch-size
Browse files Browse the repository at this point in the history
Fix Torch validation batch size import from net desc
  • Loading branch information
lukeyeager committed Mar 28, 2016
2 parents b06dfaa + a27b609 commit 87587ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/torch/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ local valBatchSize
if opt.batchSize==0 then
local defaultBatchSize = 16
trainBatchSize = network.trainBatchSize or defaultBatchSize
valBatchSize = network.validBatchSize or defaultBatchSize
valBatchSize = network.validationBatchSize or defaultBatchSize
else
trainBatchSize = opt.batchSize
valBatchSize = opt.batchSize
Expand Down

0 comments on commit 87587ba

Please sign in to comment.