Skip to content

Commit

Permalink
fix dtype of output error, should be int64_t
Browse files Browse the repository at this point in the history
  • Loading branch information
pangyoki committed Sep 29, 2020
1 parent b5b9903 commit cf96fde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddle/fluid/operators/multinomial_op.cu
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class MultinomialOpKernel<platform::CUDADeviceContext, T>

MultinomialFunctor<T>(cpu_out_data, cpu_in_data, num_samples, replacement,
num_categories, num_distributions);
cudaMemcpy(out_data, cpu_out_data, out_data_numel * sizeof(T),
cudaMemcpy(out_data, cpu_out_data, out_data_numel * sizeof(int64_t),
cudaMemcpyHostToDevice);

delete[] cpu_in_data;
Expand Down

1 comment on commit cf96fde

@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.