positional_encoding is supposed to return pos_encoding with the dimensions (1, position, d_model). When I run `positional_encoding_test’, the assertion expects dimension of (1, 8, 16). However, when I place a print statement below:
# START CODE HERE
# initialize a matrix angle_rads of all the angles
print('position=',position)
I get position=4. I can fix the problem by multiplying position by 2 when I call get_angles. However, why doesn’t the output dimension agree with the position? Is this an error in the problem?
.