Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
okdshin committed Dec 6, 2019
1 parent e3df429 commit 8ef3d79
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,14 @@ def check_forward(self, x_data):
_x_data = x_data
if self.expansion_size > self.in_channels:
np.testing.assert_almost_equal(
cuda.to_cpu(y.array), _x_data+self.expansion_size*np.maximum(np.minimum(cuda.to_cpu(_x_data), 6), 0),
cuda.to_cpu(y.array), _x_data+self.expansion_size *
np.maximum(np.minimum(cuda.to_cpu(_x_data), 6), 0),
decimal=4
)
else:
np.testing.assert_almost_equal(
cuda.to_cpu(y.array), _x_data+np.maximum(np.minimum(cuda.to_cpu(_x_data), 6), 0),
cuda.to_cpu(y.array), _x_data +
np.maximum(np.minimum(cuda.to_cpu(_x_data), 6), 0),
decimal=4
)

Expand Down

0 comments on commit 8ef3d79

Please sign in to comment.