diff --git a/paddle/operators/recurrent_network_op.cc b/paddle/operators/recurrent_network_op.cc index 0a86d4b9fb790988a4b9ca7594c9f5d9043aeee3..1a101d6ddf149d608dbdbe048ef43d86bacbcc16 100644 --- a/paddle/operators/recurrent_network_op.cc +++ b/paddle/operators/recurrent_network_op.cc @@ -69,9 +69,10 @@ void ConcatOutputs(std::vector>& step_scopes, Tensor* step_output = step_scopes[j] ->GetVariable(outlinks[i].internal) ->GetMutable(); - // TODO data type and platform::DeviceContext() should set correctly + // TODO(luotao02) data type and platform::DeviceContext() should set + // correctly (output->Slice(j, j + 1)) - .CopyFrom(*step_output, platform::CPUDeviceContext()); + .CopyFrom(*step_output, platform::CPUPlace()); } } } diff --git a/paddle/platform/device_context.cc b/paddle/platform/device_context.cc index b65c20006cb3d4483b6bad9e1a5f3a357b8852ec..a928e097787db9deebe1c6eab263190caacac7eb 100644 --- a/paddle/platform/device_context.cc +++ b/paddle/platform/device_context.cc @@ -43,7 +43,7 @@ Eigen::GpuDevice* DeviceContext::get_eigen_device() const { CUDADeviceContext::CUDADeviceContext(GPUPlace place) : place_(place) { SetDeviceId(place_.device); - // TODO (qijun) Pass a created cuda stream to Eigen::CudaStreamDevice directly + // TODO(qijun) Pass a created cuda stream to Eigen::CudaStreamDevice directly // here will cause segment fault. We must implement a class derived from // Eigen::StreamInterface, and reinitialize it with a cuda stream and a gpu id // later. Please refer to the implementation of class EigenCudaStreamDevice