Repository navigation
Maybe we should relax inplace optimization conditions in plan_memory.cc? #20695
|
Hi guys, we developed our custom fake quantization operator but suffer out of memory issues due to store activations two times (before and after fakequant op). We try to solve this problem by making forward and backward in place, however, the in_data and out_data are not shared because the mxnet backend makes the final decision of memory optimization. We notice that the condition at line 257 in plan_memory.cc controls whether to perform optimization, in our opinion, |
Replies: 1 comment
|
I checked the code and noticed that the |
I checked the code and noticed that the
FInplaceIdentityfunction enables in-place optimization even when the input reference count is greater than one, which covers the above cases.