From ce289f4550fc0f936c810fb9350c24656ff7a266 Mon Sep 17 00:00:00 2001 From: JamesLim-sy Date: Mon, 1 Feb 2021 11:49:25 +0000 Subject: [PATCH] Deleting the sync codes. --- paddle/fluid/operators/index_sample_op.cu | 3 --- 1 file changed, 3 deletions(-) diff --git a/paddle/fluid/operators/index_sample_op.cu b/paddle/fluid/operators/index_sample_op.cu index f126fd1c60a86..24ea50b22915f 100644 --- a/paddle/fluid/operators/index_sample_op.cu +++ b/paddle/fluid/operators/index_sample_op.cu @@ -143,9 +143,6 @@ class IndexSampleGradKernel framework::proto::VarType::INT32), paddle::framework::DataTypeToString( framework::proto::VarType::INT64))); - PADDLE_ENFORCE_EQ( - platform::is_gpu_place(ctx.GetPlace()), true, - platform::errors::InvalidArgument("It must use CUDAPlace.")); auto stream = ctx.template device_context().stream();