samskalicky edited a comment on issue #19354: URL: https://github.com/apache/incubator-mxnet/issues/19354#issuecomment-708848517
This problem is compounded by the bug in the lambda function used to allocate new tensors for graph passes: https://github.com/apache/incubator-mxnet/blob/6729cf3bf4edd6837b0feb6417691ce2e00dbcee/src/c_api/c_api.cc#L1417-L1419 where its calling the `NDArray` constructor: https://github.com/apache/incubator-mxnet/blob/6729cf3bf4edd6837b0feb6417691ce2e00dbcee/include/mxnet/ndarray.h#L95-L96 and its passing in the dtype to the 3rd argument which is `delay_alloc`. the 4th argument is actually the dtype and it should be: ```c++ NDArray* arr = new NDArray(shape, ctx, false, dtype); ``` ---------------------------------------------------------------- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
