Unverified Commit 5484c381 authored by Gustaf Ahdritz's avatar Gustaf Ahdritz Committed by GitHub
Browse files

Standardize if condition

parent c52d262c
...@@ -397,7 +397,7 @@ class TriangleMultiplicativeUpdate(nn.Module): ...@@ -397,7 +397,7 @@ class TriangleMultiplicativeUpdate(nn.Module):
# reduced-precision modes # reduced-precision modes
a_std = a.std() a_std = a.std()
b_std = b.std() b_std = b.std()
if(a_std != 0. and b_std != 0): if(a_std != 0. and b_std != 0.):
a = a / a.std() a = a / a.std()
b = b / b.std() b = b / b.std()
......
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