Torch 7 for Ravi and Lua 5.3
This is a fork of Torch7 library for Lua. It is part of the Ravi Distro project.
Changes from Torch 7
- The core TH implementation has been updated to the version used in PyTorch.
- As a result the implementation is more correct on Windows 64-bit where a C 'long' data type is 32-bits rather than 64-bits; the original Torch 7 code uses 'long' data type when it needs a 64-bit integer type.
- My aim is to test the library with Lua 5.3 and Ravi.
Torch Package Reference Manual
Torch is the main package in Torch7 where data structures for multi-dimensional tensors and mathematical operations over these are defined. Additionally, it provides many utilities for accessing files, serializing objects of arbitrary types and other useful utilities.
Torch Packages
- Tensor Library
- Tensor defines the all powerful tensor object that provides multi-dimensional numerical arrays with type templating.
- Mathematical operations that are defined for the tensor object types.
- Storage defines a simple storage interface that controls the underlying storage for any tensor object.
- File I/O Interface Library
- File is an abstract interface for common file operations.
- Disk File defines operations on files stored on disk.
- Memory File defines operations on stored in RAM.
- Pipe File defines operations for using piped commands.
- High-Level File operations defines higher-level serialization functions.
- Useful Utilities
- Timer provides functionality for measuring time.
- Tester is a generic tester framework.
- CmdLine is a command line argument parsing utility.
- Random defines a random number generator package with various distributions.
- Finally useful utility functions are provided for easy handling of torch tensor types and class inheritance.