Skip to content

Commit

Permalink
remove useless code (#32001)
Browse files Browse the repository at this point in the history
  • Loading branch information
hutuxian authored Apr 1, 2021
1 parent 0589ed2 commit 9c5d028
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

0 comments on commit 9c5d028

Please sign in to comment.