{"id":24073771,"url":"https://github.com/willguimont/learnable_fourier_positional_encoding","last_synced_at":"2025-10-08T17:11:34.098Z","repository":{"id":37565524,"uuid":"438346120","full_name":"willGuimont/learnable_fourier_positional_encoding","owner":"willGuimont","description":"Learnable Fourier Features for Multi-Dimensional Spatial Positional Encoding","archived":false,"fork":false,"pushed_at":"2024-09-30T00:06:43.000Z","size":7,"stargazers_count":56,"open_issues_count":0,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-28T10:20:58.574Z","etag":null,"topics":["attention-is-all-you-need","deep-learning","deep-neural-networks","deeplearning","positional-encoding","pytorch","transformer"],"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/willGuimont.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":"2021-12-14T17:42:45.000Z","updated_at":"2025-08-24T21:17:52.000Z","dependencies_parsed_at":"2025-01-16T18:17:25.739Z","dependency_job_id":"de5d4dfd-fe34-47ec-981a-14f981b9bde4","html_url":"https://github.com/willGuimont/learnable_fourier_positional_encoding","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/willGuimont/learnable_fourier_positional_encoding","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willGuimont%2Flearnable_fourier_positional_encoding","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willGuimont%2Flearnable_fourier_positional_encoding/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willGuimont%2Flearnable_fourier_positional_encoding/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willGuimont%2Flearnable_fourier_positional_encoding/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willGuimont","download_url":"https://codeload.github.com/willGuimont/learnable_fourier_positional_encoding/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willGuimont%2Flearnable_fourier_positional_encoding/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278981518,"owners_count":26079640,"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-08T02:00:06.501Z","response_time":56,"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":["attention-is-all-you-need","deep-learning","deep-neural-networks","deeplearning","positional-encoding","pytorch","transformer"],"created_at":"2025-01-09T17:56:47.350Z","updated_at":"2025-10-08T17:11:34.079Z","avatar_url":"https://github.com/willGuimont.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Learnable Fourier Features for Multi-Dimensional Spatial Positional Encoding\n\nImplementation of [Learnable Fourier Features for Multi-Dimensional Spatial Positional Encoding](https://arxiv.org/abs/2106.02795) by Li, Si, Li, Hsieh and Bengio.\n\n## Installation\n\n```bash\npip install learnable_fourier_positional_encoding\n```\n\n## Usage\n\n```python\nimport torch\nfrom learnable_fourier_positional_encoding import LearnableFourierPositionalEncoding\n\nG = 3\nM = 17\nx = torch.randn((97, G, M))\nenc = LearnableFourierPositionalEncoding(G, M, 768, 32, 768, 10)\npex = enc(x)\nprint(pex.shape)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillguimont%2Flearnable_fourier_positional_encoding","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillguimont%2Flearnable_fourier_positional_encoding","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillguimont%2Flearnable_fourier_positional_encoding/lists"}