Skip to content

Commit

Permalink
set self.train=[true,false] for containers
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholas-leonard committed Jun 17, 2015
1 parent fdfcd12 commit 8007e9c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Container.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,14 @@ function Container:training()
for i=1,#self.modules do
self.modules[i]:training()
end
parent.training(self)
end

function Container:evaluate()
for i=1,#self.modules do
self.modules[i]:evaluate()
end
parent.evaluate(self)
end

function Container:share(mlp, ...)
Expand Down

0 comments on commit 8007e9c

Please sign in to comment.