{"id":18293029,"url":"https://github.com/gpflow/check_shapes","last_synced_at":"2025-04-05T11:30:48.630Z","repository":{"id":60199679,"uuid":"541490471","full_name":"GPflow/check_shapes","owner":"GPflow","description":"Library for annotating and checking tensor shapes.","archived":false,"fork":false,"pushed_at":"2024-04-08T10:52:43.000Z","size":131176,"stargazers_count":7,"open_issues_count":9,"forks_count":0,"subscribers_count":5,"default_branch":"develop","last_synced_at":"2024-04-08T11:49:30.153Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GPflow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-09-26T08:49:27.000Z","updated_at":"2024-04-15T12:00:41.594Z","dependencies_parsed_at":"2024-04-08T11:56:05.951Z","dependency_job_id":null,"html_url":"https://github.com/GPflow/check_shapes","commit_stats":{"total_commits":1966,"total_committers":88,"mean_commits":22.34090909090909,"dds":0.7451678535096643,"last_synced_commit":"396911043a723cb36e81f7abd85f59c04c83e376"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GPflow%2Fcheck_shapes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GPflow%2Fcheck_shapes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GPflow%2Fcheck_shapes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GPflow%2Fcheck_shapes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GPflow","download_url":"https://codeload.github.com/GPflow/check_shapes/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223184126,"owners_count":17102008,"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":[],"created_at":"2024-11-05T14:21:09.975Z","updated_at":"2024-11-05T14:21:12.029Z","avatar_url":"https://github.com/GPflow.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# check_shapes\n\n`check_shapes` is a library for annotating and checking tensor shapes.\nFor example:\n\n```python\nimport tensorflow as tf\n\nfrom gpflow.experimental.check_shapes import check_shapes\n\n@tf.function\n@check_shapes(\n    \"features: [batch..., n_features]\",\n    \"weights: [n_features]\",\n    \"return: [batch...]\",\n)\ndef linear_model(features: tf.Tensor, weights: tf.Tensor) -\u003e tf.Tensor:\n    return tf.einsum(\"...i,i -\u003e ...\", features, weights)\n```\n\nFor more information see our [documentation](https://gpflow.github.io/check_shapes).\n\n## Installation\n\nThe recommended way to install `check_shapes` is from pypi:\n\n```bash\npip install check_shapes\n```\n\n### From source\n\nTo develop `check_shapes`, check it out from GitHub:\n\n```bash\ngit clone git@github.com:GPflow/check_shapes.git\n```\n\nWe use [Poetry](https://python-poetry.org/) to install and manage dependencies. Follow their\ninstructions for how to install Poetry itself. Then:\n\n```bash\ncd check_shapes\npoetry install\n```\n\nTo check you installation run our tests:\n\n```bash\npoetry run task test\n```\n\nFor testing with different versions of Python and dependencies, see the `poetryenv` script.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgpflow%2Fcheck_shapes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgpflow%2Fcheck_shapes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgpflow%2Fcheck_shapes/lists"}