leezu commented on a change in pull request #17530: Add deferred compute support URL: https://github.com/apache/incubator-mxnet/pull/17530#discussion_r379849363
########## File path: src/c_api/c_api_ndarray.cc ########## @@ -428,3 +436,41 @@ int MXCachedOpRegisterOpHook(NDArrayHandle handle, op->RegisterOpHook(clbk, monitor_all); API_END(); } + +int MXNDArrayIsDeferredComputeEnabled(int *curr) { + API_BEGIN(); + *curr = Imperative::Get()->is_deferred_compute(); + API_END(); +} + +int MXNDArraySetDeferredComputeEnabled(int deferred_compute, int *prev) { Review comment: For consistency with autograd APIs, lets call it `MXNDArraySetIsDeferredCompute` ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services