[Torch5-bugs] [ torch5-Bugs-1797568 ] nn.Sequential -- no way of getting :size()
Status: Pre-Alpha
Brought to you by:
andresy
|
From: SourceForge.net <no...@so...> - 2007-10-27 00:40:14
|
Bugs item #1797568, was opened at 2007-09-19 01:14 Message generated for change (Comment added) made by andresy You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=905598&aid=1797568&group_id=183526 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Raoul d'Andresy (andresy) Summary: nn.Sequential -- no way of getting :size() Initial Comment: we should be able to do something like: mlp=nn.Sequential() mlp:add(nn.Linear(5,5)) print(mlp:size()) by the way, why is it mlp:get(1) when for everything else one uses square brackets [] ? would it be possible to simply make nn.Sequential inherit from Array in that regard or something? or .. ---------------------------------------------------------------------- >Comment By: Raoul d'Andresy (andresy) Date: 2007-10-27 00:40 Message: Logged In: YES user_id=1651867 Originator: NO iain added the :size() method apparently ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=905598&aid=1797568&group_id=183526 |