Skip to content

Commit

Permalink
remove residual cache
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanglirong1999 committed Nov 3, 2023
1 parent 95c29d0 commit 300015a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions paddle/fluid/operators/mkldnn/fc_mkldnn_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ struct InnerProductCache {
dnnl::memory bias_mem;
dnnl::memory dst_mem;
dnnl::memory residual_mem;
phi::DenseTensor residual_data;
dnnl::memory src_scales_mem;
dnnl::memory wei_scales_mem;
dnnl::memory dst_scales_mem;
Expand Down Expand Up @@ -655,8 +654,7 @@ class FCMKLDNNKernel : public framework::OpKernel<T_in> {
ip_cache->src_mem = *src_memory_p;
ip_cache->weights_mem = *weights_memory_p;
ip_cache->dst_mem = *dst_memory_p;
if (residual_data && residual_data_memory_p) {
ip_cache->residual_data = *residual_data;
if (residual_data_memory_p) {
ip_cache->residual_mem = *residual_data_memory_p;
}
if (bias) {
Expand Down

0 comments on commit 300015a

Please sign in to comment.