[Torch5-bugs] [ torch5-Bugs-1797571 ] quiet() doesn\'t work for memory files
Status: Pre-Alpha
Brought to you by:
andresy
From: SourceForge.net <no...@so...> - 2007-10-27 00:17:12
|
Bugs item #1797571, was opened at 2007-09-19 01:17 Message generated for change (Comment added) made by andresy You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=905598&aid=1797571&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: thespermwhale (thespermwhale) Assigned to: Raoul d'Andresy (andresy) Summary: quiet() doesn\'t work for memory files Initial Comment: quiet() doesn't work for memory files Example code for bug: require "nn" mlp= nn.Sequential(); mlp:add(nn.Linear(5,10)) mlp:add(nn.Linear(10,1)) file = torch.Archiver() -- creates an Archiver over MemoryFile file:quiet(); file:writeObject(mlp) file:seek(1) while true do file:quiet(); t=file:readChar(); print(t, file:hasError()) end ---------- It's because Archiver doesn't send this message to the memory file underneath. Adding the line "file:file():quiet()" actually makes it work.. ---------------------------------------------------------------------- >Comment By: Raoul d'Andresy (andresy) Date: 2007-10-27 00:17 Message: Logged In: YES user_id=1651867 Originator: NO quiet() works now after a big rewriting of the File stuff! ---------------------------------------------------------------------- Comment By: thespermwhale (thespermwhale) Date: 2007-09-19 01:19 Message: Logged In: YES user_id=1660532 Originator: YES Also, the function file() mentioned above is not documented. ---------------------------------------------------------------------- Comment By: thespermwhale (thespermwhale) Date: 2007-09-19 01:17 Message: Logged In: YES user_id=1660532 Originator: YES Note that, perhaps in the same way, endSeek() doesn't work either. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=905598&aid=1797571&group_id=183526 |