1D, 2D, and 3D Sinusodal Positional Encodings in PyTorch
Project description
1D, 2D, and 3D Sinusodal Postional Encoding Pytorch
This is an implemenation of 1D, 2D, and 3D sinusodal positional encoding, being able to encode on tensors of the form (batchsize, x, ch)
, (batchsize, x, y, ch)
, and (batchsize, x, y, z, ch)
, where the positional encodings will be added to the ch
dimension. The Attention is All You Need allowed for positional encoding in only one dimension, however, this works to extend this to 2 and 3 dimensions.
Check out more on the github page.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for positional_encodings-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec1dddc8e3da57564f844aae7e8a5232bad74e7606dfe58c9925284e5219b7a9 |
|
MD5 | 733f77b5f57d444dfb987e2c4110534b |
|
BLAKE2b-256 | 3c22cb3e54b925384f56db9bee394c20e6896ef31099ecae76f3a91a330f05fa |
Close
Hashes for positional_encodings-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68afba24f4096c81d939b3bec3a6a0cea1fd2647c84491b56a76785221a13d04 |
|
MD5 | 75177e84f2614c1f0df0cd112c41991a |
|
BLAKE2b-256 | 1295fc62f81fc6429e8cdf964c44776e4f1257b04d7f543a013e2304107b0aca |