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
OpenFold
Commits
40d76358
Commit
40d76358
authored
Dec 08, 2023
by
Christina Floristean
Browse files
Minor change to tests
parent
336c899a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
tests/data_utils.py
tests/data_utils.py
+0
-2
No files found.
tests/data_utils.py
View file @
40d76358
...
...
@@ -106,8 +106,6 @@ def random_attention_inputs(batch_size, n_seq, n, no_heads, c_hidden, inf=1e9,
mask
=
torch
.
randint
(
0
,
2
,
(
batch_size
,
n_seq
,
1
,
1
,
n
),
dtype
=
dtype
,
requires_grad
=
False
).
cuda
()
z_bias
=
torch
.
rand
(
batch_size
,
1
,
no_heads
,
n
,
n
,
dtype
=
dtype
,
requires_grad
=
requires_grad
).
cuda
()
mask_bias
=
inf
*
(
mask
-
1
)
if
requires_grad
:
mask_bias
=
mask_bias
.
detach
().
clone
().
requires_grad_
()
biases
=
[
mask_bias
,
z_bias
]
...
...
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