Skip to content
/ torchTT Public
forked from ion-g-ion/torchTT

Tensor-Train decomposition in pytorch

License

Notifications You must be signed in to change notification settings

Xyntec/torchTT

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

torchTT

Tensor-Train decomposition in pytorch

Tensor-Train decomposition package written only in Python on top of pytorch. Supports GPU acceleration and automatic differentiation. It also contains routines for solving linear systems in the TT format and performing adaptive cross approximation (the AMEN solver/cross interpolation is inspired form the MATLAB TT-Toolbox).

Installation

Requirements

Following requirements are needed:

The GPU (if available) version of pytorch is recommended to be installed. Read the official installation guide for further info.

Using pip

You can install the package using the pip command:

pip install git+https://github.com/ion-g-ion/torchTT

One can also clone the repository and manually install the package:

git clone https://github.com/ion-g-ion/torchTT
cd torchtt
pip install .

Using conda

TODO

Components

The main modules/submodules that can be accessed after importing torchtt are briefly desctibed in the following table. Detailed description can be found here.

Component Description
torchtt Basic TT class and basic linear algebra functions.
torchtt.solvers Implementation of the AMEN solver.
torchtt.grad Wrapper for automatic differentiation.
torchtt.manifold Riemannian gradient and projection onto manifolds of tensors with fixed TT rank.
torchtt.nn Basic TT neural network layer.
torchtt.interpolate Cross approximation routines.

Tests

The directory tests/ from the root folder contains all the unittests. To run them use the command:

python -m unittest discover tests/

Documentation and examples

The documentation ca be found here. Following example scripts (as well as python notebooks) are also provied provided as part of the documentation:

The documentation is generated using pdoc3 with:

pdoc3 --html torchtt -o docs/ --config latex_math=True --force

Author

Ion Gabriel Ion, e-mail: [email protected]

About

Tensor-Train decomposition in pytorch

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%