{"id":15020417,"url":"https://github.com/epronovost/eincheck","last_synced_at":"2026-02-18T03:16:24.957Z","repository":{"id":65964466,"uuid":"559085318","full_name":"EPronovost/eincheck","owner":"EPronovost","description":"Tensor shape checks inspired by einstein notation","archived":false,"fork":false,"pushed_at":"2024-10-25T16:01:59.000Z","size":153,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-30T02:58:26.114Z","etag":null,"topics":["deep-learning","jax","numpy","pytorch","tensor","tensorflow"],"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/EPronovost.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-29T02:38:07.000Z","updated_at":"2024-10-26T22:25:16.000Z","dependencies_parsed_at":"2024-08-10T02:41:42.979Z","dependency_job_id":"dbd43b53-7b03-43e7-ad06-d8f6a4fd9263","html_url":"https://github.com/EPronovost/eincheck","commit_stats":{"total_commits":22,"total_committers":2,"mean_commits":11.0,"dds":"0.18181818181818177","last_synced_commit":"18e5cce7b03872dc553cbc723186cf08830b35de"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EPronovost%2Feincheck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EPronovost%2Feincheck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EPronovost%2Feincheck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EPronovost%2Feincheck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EPronovost","download_url":"https://codeload.github.com/EPronovost/eincheck/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238235622,"owners_count":19438725,"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","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":["deep-learning","jax","numpy","pytorch","tensor","tensorflow"],"created_at":"2024-09-24T19:55:03.846Z","updated_at":"2025-10-26T00:31:10.766Z","avatar_url":"https://github.com/EPronovost.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eincheck\n\n[![CI](https://github.com/epronovost/eincheck/actions/workflows/pr.yaml/badge.svg)](https://github.com/epronovost/eincheck/actions/workflows/pr.yaml)\n[![Documentation Status](https://readthedocs.org/projects/eincheck/badge/?version=main)](https://eincheck.readthedocs.io/en/main/?badge=main)\n[![PyPI version](https://badge.fury.io/py/eincheck.svg)](https://badge.fury.io/py/eincheck)\n\nTensor shape checks inspired by einstein notation\n\n\n## Overview\n\nThis library has three main functions:\n\n* `check_shapes` takes tuples of `(Tensor, shape)` and checks that all the Tensors match the shapes\n\n```\ncheck_shapes((x, \"i 3\"), (y, \"i 3\"))\n```\n\n* `check_func` is a function decorator to check the input and output shapes of a function\n\n```\n@check_func(\"*i x, *i y -\u003e *i (x + y)\")\ndef concat(a, b):\n    return np.concatenate([a, b], -1)\n```\n\n* `check_data` is a class decorator to check the fields of a data class\n\n```\n@check_data(start=\"i 2\", end=\"i 2\")\nclass LineSegment2D(NamedTuple):\n    start: torch.Tensor\n    end: torch.Tensor\n```\n\nFor more info, [read the docs!](https://eincheck.readthedocs.io/en/main)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepronovost%2Feincheck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fepronovost%2Feincheck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepronovost%2Feincheck/lists"}