def _position_encoding_init(max_length, dim):
position_enc = np.arange(max_length).reshape((-<NUM_LIT:1>, <NUM_LIT:1>))/ (np.power(<NUM_LIT>, (<NUM_LIT> / dim) * np.arange(dim).reshape((<NUM_LIT:1>, -<NUM_LIT:1>))))<EOL>position_enc[:, <NUM_LIT:0>::<NUM_LIT:2>] = np.sin(position_enc[:, <NUM_LIT:0>::<NUM_LIT:2>])  <EOL>position_enc[:, <NUM_LIT:1>::<NUM_LIT:2>] = np.cos(position_enc[:, <NUM_LIT:1>::<NUM_LIT:2>])  <EOL>return position_enc<EOL>
Init the sinusoid position encoding table