Skip to content
C Lua CMake C++
Branch: master
Clone or download

Latest commit

Latest commit dde9e56 Apr 18, 2019

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmake Adding support for ADD_TORCH_LIBRARY macro May 25, 2017
doc update docs (#1062) Jul 20, 2017
generic lua 5.3 changes and gcc constants May 25, 2017
lib revert "fix empty Tensor mmap" Sep 26, 2017
rocks removing sys dependency for now Mar 9, 2016
test Implementation of Alias Multinomial for faster Multinomial sampling (#… Jul 11, 2017
.gitignore tell git to ignore build output Sep 7, 2015
.travis.yml Update .travis.yml Oct 27, 2016
CMakeLists.txt fix cdiv/div unit tests; fix Mac OS X require ffi bug (#1016) Apr 28, 2017
CONTRIBUTING.md fixed mailing list Jun 3, 2015
COPYRIGHT.txt update license Apr 25, 2014
CmdLine.lua Update CmdLine.lua (#1000) Apr 10, 2017
DiskFile.c Add DiskFile:noBuffer() Mar 24, 2016
FFInterface.lua fix cdiv/div unit tests; fix Mac OS X require ffi bug (#1016) Apr 28, 2017
File.c replace long with ptrdiff_t for memory size/offset etc Oct 3, 2016
File.lua changing function load errors to warnings Aug 24, 2016
Generator.c Make torch.Generator serializable Apr 19, 2016
MemoryFile.c New function longSize for files Nov 26, 2015
PipeFile.c Add support for Lua 5.2 May 29, 2015
README.md Update README.md Apr 17, 2019
ROADMAP.md fix several spelling errors Aug 11, 2016
Storage.c Removing TH_GENERIC_USE_HALF, TH_NATIVE_HALF, TH_GENERIC_NO_MATH (rep… Jan 1, 2017
Tensor.c Removing TH_GENERIC_USE_HALF, TH_NATIVE_HALF, TH_GENERIC_NO_MATH (rep… Jan 1, 2017
Tensor.lua Removing TH_GENERIC_USE_HALF, TH_NATIVE_HALF, TH_GENERIC_NO_MATH (rep… Jan 1, 2017
TensorMath.lua fix cwrap std/var entry Jul 14, 2017
TensorOperator.c torch now complies with the new luaT API Aug 13, 2012
TestSuite.lua Replace torch.Tester with totem.Tester + extra stuff. Feb 25, 2016
Tester.lua Add support for torch.HalfTensor (#874) Dec 29, 2016
Timer.c a couple of changes for win32 (#779) Oct 1, 2016
general.h replace long with ptrdiff_t for memory size/offset etc Oct 3, 2016
init.c Removing TH_GENERIC_USE_HALF, TH_NATIVE_HALF, TH_GENERIC_NO_MATH (rep… Jan 1, 2017
init.lua Implementation of Alias Multinomial for faster Multinomial sampling (#… Jul 11, 2017
mkdocs.yml readthedocs Aug 13, 2015
paths.lua.in provide install paths through require 'torch.paths' Jan 10, 2017
random.lua Add support for Lua 5.2 May 29, 2015
torchcwrap.lua Add support for torch.HalfTensor (#874) Dec 29, 2016
utils.c Expose OpenMP num threads through TH lib Oct 17, 2016
utils.h Work under windows Jul 24, 2015

README.md

Join the chat at https://gitter.im/torch/torch7 Build Status

Development Status

Torch is not in active developement. The functionality provided by the C backend of Torch, which are the TH, THNN, THC, THCUNN libraries is actively extended and re-written in the ATen C++11 library (source, mirror). ATen exposes all operators you would expect from torch7, nn, cutorch, and cunn directly in C++11 and includes additional support for sparse tensors and distributed operations. It is to note however that the API and semantics of the backend libraries in Torch-7 are different from the semantice provided by ATen. For example ATen provides numpy-style broadcasting while TH* dont. For information on building the forked Torch-7 libraries in C, refer to "The C interface" in pytorch/aten/src/README.md.

Need help?

Torch7 community support can be found at the following locations. As of 2019, the Torch-7 community is close to non-existent.

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
  • 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.

Useful Links

You can’t perform that action at this time.