Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ColossalAI
Commits
22f9c60b
Commit
22f9c60b
authored
Nov 09, 2022
by
oahzxl
Browse files
fix bug
parent
8cca684c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
evoformer/ops.py
evoformer/ops.py
+1
-1
No files found.
evoformer/ops.py
View file @
22f9c60b
...
@@ -147,7 +147,7 @@ class SelfAttention(nn.Module):
...
@@ -147,7 +147,7 @@ class SelfAttention(nn.Module):
q
=
self
.
to_q
(
in_data
)
q
=
self
.
to_q
(
in_data
)
k
=
self
.
to_k
(
in_data
)
k
=
self
.
to_k
(
in_data
)
v
=
self
.
to_
k
(
in_data
)
v
=
self
.
to_
v
(
in_data
)
# q, k, v = map(lambda t: rearrange(t, 'b1 b2 n (h d) -> b1 b2 h n d', h=self.n_head),
# q, k, v = map(lambda t: rearrange(t, 'b1 b2 n (h d) -> b1 b2 h n d', h=self.n_head),
# [q, k, v])
# [q, k, v])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment