kshitij12345 commented on issue #14613: [MXNET-978] Higher order gradient support for some unary operators URL: https://github.com/apache/incubator-mxnet/pull/14613#issuecomment-498775984 @apeforest Could you update the `check_second_order_unary` as per https://github.com/apache/incubator-mxnet/blob/37ce3b87268a8154f5c0ad97ce2522478038ee06/tests/python/unittest/test_higher_order_grad.py#L76-L103 This covers check for gradient of the first input argument as well. Have tested a similar Pytorch Script which works ( code in PR #15120 ). However do note that for PR #15120 , https://github.com/apache/incubator-mxnet/blob/37ce3b87268a8154f5c0ad97ce2522478038ee06/tests/python/unittest/test_higher_order_grad.py#L102 Assertion fails with `head_grads.grad.asnumpy()` being all `0's`. Please check to see if it works for you. Thank You.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
