Fix a bug in CachedOP. (#12184)
Fix a bug in CachedOP. (#12184)

* fix a bug.

* address comments.

* retrigger

* address comments.

ForkedReposBak/mxnet,eric-haibin-lin/mxnet,leezu/mxnet,larroy/mxnet,leezu/mxnet,mbaijal/incubator-mxnet,reminisce/mxnet,dmlc/mxnet,eric-haibin-lin/mxnet,apache/incubator-mxnet,eric-haibin-lin/mxnet,zhreshold/mxnet,zhreshold/mxnet,eric-haibin-lin/mxnet,ptrendx/mxnet,ForkedReposBak/mxnet,sxjscience/mxnet,szha/mxnet,DickJC123/mxnet,leezu/mxnet,yajiedesign/mxnet,leezu/mxnet,ptrendx/mxnet,zhreshold/mxnet,szha/mxnet,DickJC123/mxnet,ForkedReposBak/mxnet,leezu/mxnet,zhreshold/mxnet,szha/mxnet,mbaijal/incubator-mxnet,mbaijal/incubator-mxnet,tlby/mxnet,DickJC123/mxnet,ptrendx/mxnet,mbaijal/incubator-mxnet,yajiedesign/mxnet,mbaijal/incubator-mxnet,dmlc/mxnet,yajiedesign/mxnet,ForkedReposBak/mxnet,ForkedReposBak/mxnet,larroy/mxnet,dmlc/mxnet,tlby/mxnet,sxjscience/mxnet,leezu/mxnet,apache/incubator-mxnet,larroy/mxnet,larroy/mxnet,leezu/mxnet,zhreshold/mxnet,ptrendx/mxnet,ForkedReposBak/mxnet,yajiedesign/mxnet,ptrendx/mxnet,mbaijal/incubator-mxnet,reminisce/mxnet,dmlc/mxnet,leezu/mxnet,tlby/mxnet,DickJC123/mxnet,tlby/mxnet,reminisce/mxnet,tlby/mxnet,eric-haibin-lin/mxnet,ForkedReposBak/mxnet,reminisce/mxnet,ptrendx/mxnet,mbaijal/incubator-mxnet,larroy/mxnet,reminisce/mxnet,ptrendx/mxnet,eric-haibin-lin/mxnet,szha/mxnet,szha/mxnet,sxjscience/mxnet,dmlc/mxnet,yajiedesign/mxnet,apache/incubator-mxnet,szha/mxnet,leezu/mxnet,apache/incubator-mxnet,zhreshold/mxnet,reminisce/mxnet,reminisce/mxnet,mbaijal/incubator-mxnet,zhreshold/mxnet,tlby/mxnet,sxjscience/mxnet,ForkedReposBak/mxnet,ForkedReposBak/mxnet,mbaijal/incubator-mxnet,yajiedesign/mxnet,larroy/mxnet,yajiedesign/mxnet,reminisce/mxnet,eric-haibin-lin/mxnet,dmlc/mxnet,szha/mxnet,ptrendx/mxnet,yajiedesign/mxnet,reminisce/mxnet,zhreshold/mxnet,dmlc/mxnet,szha/mxnet,tlby/mxnet,eric-haibin-lin/mxnet,dmlc/mxnet,eric-haibin-lin/mxnet,tlby/mxnet,tlby/mxnet,yajiedesign/mxnet,sxjscience/mxnet,ptrendx/mxnet,dmlc/mxnet,larroy/mxnet,sxjscience/mxnet,reminisce/mxnet,larroy/mxnet,ptrendx/mxnet,sxjscience/mxnet,tlby/mxnet,zhreshold/mxnet,sxjscience/mxnet,sxjscience/mxnet,larroy/mxnet,szha/mxnet