positional-encodings · PyPI
pypi.org › project › positional-encodingsMay 25, 2021 · 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.
GitHub - tatp22/multidim-positional-encoding: An ...
github.com › tatp22 › multidim-positional-encoding1D, 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.