szha commented on issue #11097: fix nd.backward when out_grad is None URL: https://github.com/apache/incubator-mxnet/pull/11097#issuecomment-393362884 What happens currently is https://github.com/apache/incubator-mxnet/blob/master/src/c_api/c_api_ndarray.cc#L352 which matches https://en.cppreference.com/w/cpp/language/reinterpret_cast (explanation 4) and then https://github.com/apache/incubator-mxnet/blob/master/src/imperative/imperative.cc#L389-L395
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services