Skip to content

Commit

Permalink
remove useless code
Browse files Browse the repository at this point in the history
test=develop
  • Loading branch information
hutuxian committed Apr 1, 2021
1 parent eb3199f commit 083b20d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions paddle/fluid/operators/sync_batch_norm_op.cu.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,6 @@ void SyncBatchNormFunctor(const framework::ExecutionContext &ctx,
x_d, N, H * W * D, C, stats);
}

Tensor c_g_st;
auto *c_g_st_d = c_g_st.mutable_data<BatchNormParamType<T>>(
{2 * C + 1}, platform::CPUPlace());
auto gplace = BOOST_GET_CONST(platform::CUDAPlace, ctx.GetPlace());
memory::Copy(platform::CPUPlace(), c_g_st_d, gplace, stats, bytes, 0);

#if defined(PADDLE_WITH_NCCL) || defined(PADDLE_WITH_RCCL)
auto *comm = dev_ctx.nccl_comm();
if (comm) {
Expand Down

1 comment on commit 083b20d

@paddle-bot-old
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congratulation! Your pull request passed all required CI. You could ask reviewer(s) to approve and merge. 🎉

Please sign in to comment.