{"id":24404081,"url":"https://github.com/tnbar/tednet","last_synced_at":"2025-10-10T01:32:39.337Z","repository":{"id":41197403,"uuid":"318468691","full_name":"tnbar/tednet","owner":"tnbar","description":"TedNet: A Pytorch Toolkit for Tensor Decomposition Networks","archived":false,"fork":false,"pushed_at":"2022-04-06T03:00:27.000Z","size":321,"stargazers_count":97,"open_issues_count":3,"forks_count":13,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-01T11:18:02.704Z","etag":null,"topics":["artificial-intelligence","deep-neural-networks","pytorch","tensor-decomposition"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tnbar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-04T09:36:43.000Z","updated_at":"2025-08-17T10:16:01.000Z","dependencies_parsed_at":"2022-07-21T21:32:37.631Z","dependency_job_id":null,"html_url":"https://github.com/tnbar/tednet","commit_stats":null,"previous_names":["perryuu/tednet"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/tnbar/tednet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tnbar%2Ftednet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tnbar%2Ftednet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tnbar%2Ftednet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tnbar%2Ftednet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tnbar","download_url":"https://codeload.github.com/tnbar/tednet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tnbar%2Ftednet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002406,"owners_count":26083374,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["artificial-intelligence","deep-neural-networks","pytorch","tensor-decomposition"],"created_at":"2025-01-20T03:59:07.841Z","updated_at":"2025-10-10T01:32:38.976Z","avatar_url":"https://github.com/tnbar.png","language":"Python","funding_links":[],"categories":["Toolboxes"],"sub_categories":["Deep Model Implementation"],"readme":"[![Python package](https://github.com/tnbar/tednet/actions/workflows/python-package.yml/badge.svg)](https://github.com/tnbar/tednet/actions/workflows/python-package.yml)\n[![Documentation Status](https://readthedocs.org/projects/tednet/badge/?version=latest)](https://tednet.readthedocs.io/en/latest/?badge=latest)\n![PyPI - License](https://img.shields.io/pypi/l/tednet)\n[![PyPI](https://img.shields.io/pypi/v/tednet)](https://pypi.org/project/tednet/)\n\n# TedNet: A Pytorch Toolkit for Tensor Decomposition Networks\n`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.\n\n\nNow, **tednet** is easy to be installed by `pip`:\n\n```shell script\npip install tednet\n```\n\nMore information could be found in [Document](https://tednet.readthedocs.io/en/latest/index.html).\n\n\n---\n\n### Quick Start\n\n##### Operation\nThere are some operations supported in `tednet`, and it is convinient to use them. First, import it:\n\n```python\nimport tednet as tdt\n```\n\nCreate matrix whose diagonal elements are ones:\n```python\ndiag_matrix = tdt.eye(5, 5)\n```\n\nA way to transfer the Pytorch tensor into numpy array:\n\n```python\ndiag_matrix = tdt.to_numpy(diag_matrix)\n```\n\nSimilarly, the numpy array can be taken into Pytorch tensor by:\n\n```python\ndiag_matrix = tdt.to_tensor(diag_matrix)\n```\n\n##### Tensor Decomposition Networks (Tensor Ring for Sample)\nTo use tensor ring decomposition models, simply calling the tensor ring module is enough.\n\n```python\nimport tednet.tnn.tensor_ring as tr\n\n# Define a TR-LeNet5\nmodel = tr.TRLeNet5(10, [6, 6, 6, 6])\n```\n\n---\n\n### Citing\n\nIf you use `tednet` in an academic work, we will appreciate you for citing our paper with:\n\n```bibtex\n@article{DBLP:journals/ijon/PanWX22,\n  author    = {Yu Pan and\n               Maolin Wang and\n               Zenglin Xu},\n  title     = {TedNet: {A} Pytorch toolkit for tensor decomposition networks},\n  journal   = {Neurocomputing},\n  volume    = {469},\n  pages     = {234--238},\n  year      = {2022}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftnbar%2Ftednet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftnbar%2Ftednet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftnbar%2Ftednet/lists"}