Skip to main content

Python package Documentation Status PyPI - License PyPI

tednet

tednet is a toolkit for tensor decomposition networks. Tensor decomposition networks are neural networks whose layers are decomposed by tensor decomposition, including CANDECOMP/PARAFAC, Tucker2, Tensor Train, Tensor Ring and so on. For a convenience to do research on it, tednet provides excellent tools to deal with tensorial networks.

Now, tednet is easy to be installed by pip:

pip install tednet

More information could be found in Document.


Quick Start

Operation

There are some operations supported in tednet, and it is convinient to use them. First, import it:

import tednet as tdt

Create matrix whose diagonal elements are ones:

diag_matrix = tdt.eye(5, 5)

A way to transfer the Pytorch tensor into numpy array:

diag_matrix = tdt.to_numpy(diag_matrix)

Similarly, the numpy array can be taken into Pytorch tensor by:

diag_matrix = tdt.to_tensor(diag_matrix)
Tensor Decomposition Networks (Tensor Ring for Sample)

To use tensor ring decomposition models, simply calling the tensor ring module is enough.

import tednet.tnn.tensor_ring as tr

# Define a TR-LeNet5
model = tr.TRLeNet5(10, [6, 6, 6, 6])

Metadata

Release files for tednet 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tednet 0.1.3
File Size Uploaded Provenance Actions
tednet-0.1.3.tar.gz 19.6 kB Without provenance Details for tednet-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tednet 0.1.3
File Interpreter ABI Platform Actions
tednet-0.1.3-py3-none-any.whl Python 3 none any Details for tednet-0.1.3-py3-none-any.whl

Total release size: 58.0 kB

Release files / tednet-0.1.3.tar.gz

Download URL tednet-0.1.3.tar.gz
Size 19.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2c7535f84de13299dce0fb66b5765e36bde9580d8bbb1ae3ba1ec7a110f3af7b
BLAKE2b-256 checksum
How to use checksums
f829ddb3922c35dab1dba45493ebdd044860e56837626a142a1b8aec08d97da9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2

Release files / tednet-0.1.3-py3-none-any.whl

Download URL tednet-0.1.3-py3-none-any.whl
Size 38.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
93d13689322a55f8ee4d01f2415bcc119c15bf1463ae203372b5e16e412c77a8
BLAKE2b-256 checksum
How to use checksums
f1644ff163b1c3340185a8748586eb18af46f75eed2f26025c009fc7a115856e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2

Security for tednet 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page