rondogency commented on a change in pull request #15921: [WIP] dynamic custom operator support URL: https://github.com/apache/incubator-mxnet/pull/15921#discussion_r329836864
########## File path: example/lib_ops/gemm_lib.cc ########## @@ -123,13 +114,17 @@ MXReturnValue backward(std::map<std::string, std::string> attrs, std::cout << "n: " << n << " k: " << k << " m: " << m << std::endl; - float At[n*k], Bt[k*m]; + float *At = new float[n*k]; + float *Bt = new float[k*m]; + transpose(A, At, n, k); transpose(B, Bt, k, m); gemm(dC, Bt, dA, n, k, m); gemm(At, dC, dB, n, k, m); + free(At); Review comment: thanks for pointing it out! ---------------------------------------------------------------- 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
