All Projects → tensorly → torch

tensorly / torch

Licence: BSD-3-Clause license
TensorLy-Torch: Deep Tensor Learning with TensorLy and PyTorch

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to torch

ostd
Online Stochastic Tensor Decomposition for Background Subtraction in Multispectral Video Sequences
Stars: ✭ 21 (-41.67%)
Mutual labels:  tensor
NDScala
N-dimensional arrays in Scala 3. Think NumPy ndarray, but type-safe over shapes, array/axis labels & numeric data types
Stars: ✭ 37 (+2.78%)
Mutual labels:  tensor
PuzzleLib
Deep Learning framework with NVIDIA & AMD support
Stars: ✭ 52 (+44.44%)
Mutual labels:  tensor
tensority
Strongly typed multidimensional array library for OCaml
Stars: ✭ 44 (+22.22%)
Mutual labels:  tensor
Tensorial.jl
Statically sized tensors and related operations for Julia
Stars: ✭ 18 (-50%)
Mutual labels:  tensor
TensorCast.jl
It slices, it dices, it splices!
Stars: ✭ 106 (+194.44%)
Mutual labels:  tensor
Xtensor.jl
Julia package for xtensor-julia
Stars: ✭ 38 (+5.56%)
Mutual labels:  tensor
eddl
European Distributed Deep Learning (EDDL) library. A general-purpose library initially developed to cover deep learning needs in healthcare use cases within the DeepHealth project.
Stars: ✭ 31 (-13.89%)
Mutual labels:  tensor
peps-torch
Solving two-dimensional spin models with tensor networks (powered by PyTorch)
Stars: ✭ 44 (+22.22%)
Mutual labels:  tensor-networks
cMPO
continuous-time matrix product operator for finite temperature quantum states
Stars: ✭ 27 (-25%)
Mutual labels:  tensor-networks
jet
Jet is a cross-platform library for simulating quantum circuits using tensor network contractions.
Stars: ✭ 34 (-5.56%)
Mutual labels:  tensor-networks
keras-neural-graph-fingerprint
Keras implementation of Neural Graph Fingerprints as proposed by Duvenaud et al., 2015
Stars: ✭ 47 (+30.56%)
Mutual labels:  tensor
NTFk.jl
Unsupervised Machine Learning: Nonnegative Tensor Factorization + k-means clustering
Stars: ✭ 36 (+0%)
Mutual labels:  tensor-networks
Tensor
A library and extension that provides objects for scientific computing in PHP.
Stars: ✭ 146 (+305.56%)
Mutual labels:  tensor
e-verest
EVEREST: e-Versatile Research Stick for peoples
Stars: ✭ 21 (-41.67%)
Mutual labels:  tensor
DI-treetensor
Let DI-treetensor help you simplify the structure processing!(树形运算一不小心就逻辑混乱?DI-treetensor快速帮你搞定)
Stars: ✭ 134 (+272.22%)
Mutual labels:  tensor
Etaler
A flexable HTM (Hierarchical Temporal Memory) framework with full GPU support.
Stars: ✭ 79 (+119.44%)
Mutual labels:  tensor
analisis-numerico-computo-cientifico
Análisis numérico y cómputo científico
Stars: ✭ 42 (+16.67%)
Mutual labels:  tensor
TensorAlgDiff
Automatic Differentiation for Tensor Algebras
Stars: ✭ 26 (-27.78%)
Mutual labels:  tensor
systemds
An open source ML system for the end-to-end data science lifecycle
Stars: ✭ 38 (+5.56%)
Mutual labels:  tensor

TensorLy-Torch

TensorLy-Torch is a Python library for deep tensor networks that builds on top of TensorLy and PyTorch. It allows to easily leverage tensor methods in a deep learning setting and comes with all batteries included.

With TensorLy-Torch, you can easily:

  • Tensor Factorizations: decomposing, manipulating and initializing tensor decompositions can be tricky. We take care of it all, in a convenient, unified API.
  • Leverage structure in your data: with tensor layers, you can easily leverage the structure in your data, through Tensor Regression Layers, Factorized Convolutions, etc
  • Built-in tensor layers: all you have to do is import tensorly torch and include the layers we provide directly within your PyTorch models!
  • Tensor hooks: you can easily augment your architectures with our built-in Tensor Hooks. Robustify your network with Tensor Dropout and automatically select the rank end-to-end with L1 Regularization!
  • All the methods available: we are always adding more methods to make it easy to compare between the performance of various deep tensor based methods!

Deep Tensorized Learning

Tensor methods generalize matrix algebraic operations to higher-orders. Deep neural networks typically map between higher-order tensors. In fact, it is the ability of deep convolutional neural networks to preserve and leverage local structure that, along with large datasets and efficient hardware, made the current levels of performance possible. Tensor methods allow to further leverage and preserve that structure, for individual layers or whole networks.

./doc/_static/tensorly-torch-pyramid.png

TensorLy is a Python library that aims at making tensor learning simple and accessible. It provides a high-level API for tensor methods, including core tensor operations, tensor decomposition and regression. It has a flexible backend that allows running operations seamlessly using NumPy, PyTorch, TensorFlow, JAX, MXNet and CuPy.

TensorLy-Torch is a PyTorch only library that builds on top of TensorLy and provides out-of-the-box tensor layers.

Improve your neural networks with tensor methods

Tensor methods generalize matrix algebraic operations to higher-orders. Deep neural networks typically map between higher-order tensors. In fact, it is the ability of deep convolutional neural networks to preserve and leverage local structure that, along with large datasets and efficient hardware, made the current levels of performance possible. Tensor methods allow to further leverage and preserve that structure, for individual layers or whole networks.

In TensorLy-Torch, we provide convenient layers that do all the heavy lifting for you and provide the benefits tensor based layers wrapped in a nice, well documented and tested API.

For instance, convolution layers of any order (2D, 3D or more), can be efficiently parametrized using tensor decomposition. Using a CP decomposition results in a separable convolution and you can replace your original convolution with a series of small efficient ones:

./doc/_static/cp-conv.png

These can be easily perform with FactorizedConv in TensorLy-Torch. We also have Tucker convolutions and new tensor-train convolutions! We also implement various other methods such as tensor regression and contraction layers, tensorized linear layers, tensor dropout and more!

Installing TensorLy-Torch

Through pip

pip install tensorly-torch

From source

git clone https://github.com/tensorly/torch
cd torch
pip install -e .
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].