Skip to content

Commit

Permalink
Deleting the sync codes.
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesLim-sy committed Feb 1, 2021
1 parent ddd52bd commit ce289f4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions paddle/fluid/operators/index_sample_op.cu
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,6 @@ class IndexSampleGradKernel<platform::CUDADeviceContext, T>
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<platform::CUDADeviceContext>().stream();
Expand Down

0 comments on commit ce289f4

Please sign in to comment.