kmichaelkills opened a new issue #7400: When does kWriteInplace happen?
   I am trying to make an OP that do inplace in imperative mode. 
   For instance:
   a = mx.nd.zeros([1])
   b = mx.nd.Add1(a)
   assert a.asnumpy()[0] == 1
   I've activated the ForwardInplace option in my operator, but the req type is 
still `kWrite`. When I do `mx.nd.Add1(a, out=a)`  it does inplace calculation, 
but the req type is still `kWrite` instead of `kWriteInplace`.
   Checking out the documentation, the explanation is missing:
   // file /include/mxnet/op_attr_types.h
      * \brief perform an inplace write,
      * Target shares memory with one of input arguments.
      * This option only happen when
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:

With regards,
Apache Git Services

Reply via email to