Skip to content

Multidimensional posiional encoding - #31

Open
faucct wants to merge 1 commit into
kpot:masterfrom
faucct:master
Open

Multidimensional posiional encoding#31
faucct wants to merge 1 commit into
kpot:masterfrom
faucct:master

Conversation

@faucct

@faucct faucct commented Dec 21, 2019

Copy link
Copy Markdown

I have adapted the code from https://github.com/tensorflow/tensor2tensor/blob/d8338effc13b27f9747dc180359d7f983f9c2526/tensor2tensor/layers/common_attention.py#L613. The only difference is that I had to replacetf.pad with K.concat((prepad_zeros, signal, postpad_zeros)).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant