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
ef82ecdd
Commit
ef82ecdd
authored
Nov 10, 2021
by
Gustaf Ahdritz
Browse files
Fix another initialization bug
parent
89abce8f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
openfold/model/primitives.py
openfold/model/primitives.py
+2
-3
No files found.
openfold/model/primitives.py
View file @
ef82ecdd
...
@@ -34,9 +34,8 @@ def _prod(nums):
...
@@ -34,9 +34,8 @@ def _prod(nums):
return
out
return
out
def
_calculate_fan
(
shape
,
fan
=
"fan_in"
):
def
_calculate_fan
(
linear_weight_shape
,
fan
=
"fan_in"
):
fan_in
=
shape
[
-
2
]
fan_out
,
fan_in
=
linear_weight_shape
fan_out
=
shape
[
-
1
]
if
fan
==
"fan_in"
:
if
fan
==
"fan_in"
:
f
=
fan_in
f
=
fan_in
...
...
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