Commit ef82ecdd authored by Gustaf Ahdritz's avatar Gustaf Ahdritz
Browse files

Fix another initialization bug

parent 89abce8f
...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment