Skip to content

Commit

Permalink
ENH: remove numeric type check
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi Cresson committed Mar 13, 2021
1 parent 0c14c8d commit fca60ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def _downscale2d(x, factor=2, gain=1):
if gain != 1:
x *= gain

if factor == 2 and x.dtype == tf.float32:
if factor == 2:
return _blur2d(x, stride=factor)

if factor == 1:
Expand Down

0 comments on commit fca60ed

Please sign in to comment.