Skip to content

Commit

Permalink
Merge pull request #7588 from hvy/chx-ch-clipped-relu
Browse files Browse the repository at this point in the history
Use `chainerx.clipped_relu` in `F.clipped_relu`
  • Loading branch information
niboshi committed Jun 25, 2019
2 parents 339684a + fccbbf4 commit e48db81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chainer/functions/activation/clipped_relu.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def check_type_forward(self, in_types):

def forward_chainerx(self, inputs):
x, = inputs
return chainerx.minimum(chainerx.maximum(0, x), self.cap),
return chainerx.clipped_relu(x, self.cap),

def forward_cpu(self, inputs):
self.retain_inputs((0,))
Expand Down

0 comments on commit e48db81

Please sign in to comment.