Majid
1 min readAug 7, 2019

--

I guess you need to correct the second for-loop range in Positional Encoder. Because otherwise the statement pe[pos, i+1] would be accessing out of range memory for odd numbers

--

--

No responses yet