GitHub - tatp22/multidim-positional-encoding: An ...
https://github.com/tatp22/multidim-positional-encoding20.12.2021 · 1D, 2D, and 3D Sinusoidal Postional Encoding (Pytorch and Tensorflow) 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 …