Skip to main content

Learnable Fourier Features for Multi-Dimensional Spatial Positional Encoding

Implementation of Learnable Fourier Features for Multi-Dimensional Spatial Positional Encoding by Li, Si, Li, Hsieh and Bengio.

Installation

pip install learnable_fourier_positional_encoding

Usage

import torch
from learnable_fourier_positional_encoding import LearnableFourierPositionalEncoding

G = 3
M = 17
x = torch.randn((97, G, M))
enc = LearnableFourierPositionalEncoding(G, M, 768, 32, 768, 10)
pex = enc(x)
print(pex.shape)

Metadata

Release files for learnable-fourier-positional-encoding 0.0.1

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

Source distribution (sdist)

Source distribution for learnable-fourier-positional-encoding 0.0.1
File Size Uploaded Provenance Actions
learnable_fourier_positional_encoding-0.0.1.tar.gz 3.5 kB Without provenance Details for learnable_fourier_positional_encoding-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for learnable-fourier-positional-encoding 0.0.1
File Interpreter ABI Platform Actions
learnable_fourier_positional_encoding-0.0.1-py3-none-any.whl Python 3 none any Details for learnable_fourier_positional_encoding-0.0.1-py3-none-any.whl

Total release size: 8.1 kB

Release files / learnable_fourier_positional_encoding-0.0.1.tar.gz

Download URL learnable_fourier_positional_encoding-0.0.1.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
fc08dc6c03f1bf13f88d35aa5b8dc6c38151d18e79bc93d317adae9d16991807
BLAKE2b-256 checksum
How to use checksums
6e60f322f3641bf7fe13b23766aaf2ad8fdb148484e8d5f3518cca29b92f7da9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / learnable_fourier_positional_encoding-0.0.1-py3-none-any.whl

Download URL learnable_fourier_positional_encoding-0.0.1-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f25d940503a5d09f3b586ebb1e6f04482e196b50a6634f4ba8d4698b366db59a
BLAKE2b-256 checksum
How to use checksums
7e0afdcad57606973e15f5b499473515a476cda6908e8ee335dfa8ca3c6a882c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Security for learnable-fourier-positional-encoding 0.0.1

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.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

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