Skip to content

Conversation

Yancey0623
Copy link
Contributor

@Yancey0623 Yancey0623 commented Nov 15, 2017

Fixed #4971

TODO

  1. Fix test backward failed
61: ERROR: test_check_grad (__main__.TestHSigmoidOp)
61: ----------------------------------------------------------------------
61: Traceback (most recent call last):
61:   File "test_hsigmoid_op.py", line 35, in test_check_grad
61:     no_grad_set=set(['Label']))
61:   File "/paddle/python/paddle/v2/fluid/tests/op_test.py", line 374, in check_grad
61:     in_place=in_place) for input_to_check in inputs_to_check
61:   File "/paddle/python/paddle/v2/fluid/tests/op_test.py", line 141, in get_numeric_gradient
61:     __set_elem__(tensor_to_check, i, x_pos)
61:   File "/paddle/python/paddle/v2/fluid/tests/op_test.py", line 127, in __set_elem__
61:     tensor.set_int64_element(i, e)
61: TypeError: set_int64_element(): incompatible function arguments. The following argument types are supported:
61:     1. (self: paddle.v2.fluid.core.Tensor, arg0: int, arg1: int) -> None
61:
61: Invoked with: <paddle.v2.fluid.core.LoDTensor object at 0x7f33ec279510>, 0, 1.005
  1. Implement hsigmoid with Python code in unit test.
  2. Fix backward failed.

@Yancey0623 Yancey0623 requested a review from lcy-seso November 27, 2017 11:36
@guoshengCS guoshengCS merged commit 9f2f76a into PaddlePaddle:develop Jul 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants