Skip to content

fix the bug about position table#88

Open
YellowLight021 wants to merge 1 commit into
282857341:mainfrom
YellowLight021:fix_bug_on_position
Open

fix the bug about position table#88
YellowLight021 wants to merge 1 commit into
282857341:mainfrom
YellowLight021:fix_bug_on_position

Conversation

@YellowLight021
Copy link
Copy Markdown

Hi,there is a little mistake in your code about the class "WindowAttention_kv". I have fixed the problem
# relative_coords[:, :, 0] *= 3 * self.window_size[1] - 1
# relative_coords[:, :, 1] *= 2 * self.window_size[1] - 1
relative_coords[:, :, 0] = (2 * self.window_size[1] - 1)(2 * self.window_size[2] - 1)
relative_coords[:, :, 1] *= 2 * self.window_size[2] - 1

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