Almost all classes in Torch should be a sub-class of this class.
Almost all classes in Torch should be a sub-class of this class. It provides two interesting things: first a useful interface to manage option, and second the "allocator trick".Indeed, in Torch, a class which allocate memory should desallocate this memory when it's destroyed. The idea is the following: in the constructor of Object, an Allocator object is created. You can use it in your subclasses to allocate memory. This memory will be destroyed when the Object is destroyed.
"new" operator have been defined to be used with Allocator.
Alphabetic index HTML hierarchy of classes or Java