How does InplaceInferer works?
Created by: jczaja
@luotao1 , @sneaxiy
Hi We are interested in taking adventage of inplace optimizations in DNNL integration (starting with softmax). PaddlePaddle inplace mechanism is for example used here: https://github.com/PaddlePaddle/Paddle/blob/01ab8a061936aee264c8e9aeae360cf3de195e47/paddle/fluid/operators/softmax_op.cc#L231-L235
- How does it work?
- Is softmax to work inplace always ?
- How can I detect inside kernel that kernel is to work inplace?
looking forward to your answers