Skip to content

Commit

Permalink
Merge pull request chainer#7842 from niboshi/fix-clipped-relu-test-nu…
Browse files Browse the repository at this point in the history
…mpy117

Fix `F.clipped_relu` test for NumPy 1.17
  • Loading branch information
toslunar committed Aug 2, 2019
1 parent 5b53400 commit 3e96aad
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -45,7 +45,7 @@ def forward(self, inputs, device):

def forward_expected(self, inputs):
x, = inputs
y = utils.force_array(x.clip(0, self.z))
y = utils.force_array(x.clip(0, self.z), x.dtype)
return y,


Expand Down Expand Up @@ -118,7 +118,7 @@ def forward(self, inputs, device):

def forward_expected(self, inputs):
x, = inputs
y = utils.force_array(x.clip(0, 6.0))
y = utils.force_array(x.clip(0, 6.0), x.dtype)
return y,


Expand Down

0 comments on commit 3e96aad

Please sign in to comment.