[Torch5-devel] luaT & MapStorage & SVN
Status: Pre-Alpha
Brought to you by:
andresy
From: Ronan C. <ro...@co...> - 2008-09-10 19:06:15
|
Hi, *** LuaT I made major changes in luaT, such that it handles better class inheritance. From the Lua side, this has little impact. From the C side, few functions changed. In particular luaT_newmetatable() now takes * a string for the name of the class * a string for the parent class (or NULL) (this was previously an id) * a constructor (or NULL) * a destructor (or NULL) * a factory (or NULL) Once a constructor/destructor or factory is set, it cannot be changed, avoiding messing up from Lua. Also, the true metatable is hidden from Lua now, you can see only the metatable containing methods (so you cannot messup constructor or __gc from there). New feature: all functions of a class can now be accessed in the following way: torch.Tensor.fill(x, 1) instead of x:fill(1). *** MapStorage As several people seemed interested in it, I added MapStorage in torch module. It works on the platforms we support. x = torch.DoubleMapStorage(filename) returns a kind of DoubleStorage which maps the contents of a file in memory. *** SVN The website has been updated. Now Torch should be officially retrieved from SVN. Ronan. |