We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
one is in https://github.com/soskek/attention_is_all_you_need/blob/master/net.py#L345, and another in https://github.com/soskek/attention_is_all_you_need/blob/master/net.py#L346-L350, by the way, is that the calculate of sin&cos position embeded in self.initialize_position_encoding ( return the "all position encoding array"), am I correct?
self.initialize_position_encoding
The text was updated successfully, but these errors were encountered:
embed_pos is just an option feature, which is off as default. you can ignore it.
embed_pos
Sorry, something went wrong.
@soskek One question about https://github.com/soskek/attention_is_all_you_need/blob/master/net.py#L345 you only add self.position_encoding_block[:, :, :length], there is no x_block or any data information pass into it? if there is two sentence with the same length, do you mean there position encoding is the same??
self.position_encoding_block[:, :, :length]
x_block
data
How to understand it?
Check what is length. It is derived from each data given through https://github.com/soskek/attention_is_all_you_need/blob/master/net.py#L418-L419
length
No branches or pull requests
one is in https://github.com/soskek/attention_is_all_you_need/blob/master/net.py#L345,
and another in https://github.com/soskek/attention_is_all_you_need/blob/master/net.py#L346-L350,
by the way, is that the calculate of sin&cos position embeded in
self.initialize_position_encoding
( return the "all position encoding array"), am I correct?The text was updated successfully, but these errors were encountered: