Merge pull request #10548 from JiayiFeng/fix_warpctc_op

fix warpctc
revert-10836-update-becbos-url
fengjiayi 8 years ago committed by GitHub
commit 718f63c0d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -186,8 +186,7 @@ class WarpCTCKernel : public framework::OpKernel<T> {
// warpctc accesses labels in CPU memory
Tensor warpctc_label;
TensorCopy(*label, platform::CPUPlace(), ctx.device_context(),
&warpctc_label);
TensorCopySync(*label, platform::CPUPlace(), &warpctc_label);
const int* warpctc_label_data = warpctc_label.data<int>();
// warpctc stores loss in CPU memory
Tensor warpctc_loss;

Loading…
Cancel
Save