Skip to content

Commit 55c2c73

Browse files
Merge pull request #5703 from qingqing01/op_debug
Fix bilinear_tensor_product_op in debug mode.
2 parents 18f0c40 + 01fa4cc commit 55c2c73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/operators/bilinear_tensor_product_op.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ class BilinearTensorProductGradKernel : public framework::OpKernel<T> {
174174
// Caculate the gradient of Input(Bias).
175175
if (d_bias) {
176176
d_bias->mutable_data<T>(ctx.GetPlace());
177-
auto d_bias_mat = EigenMatrix<T>::From(*d_bias);
177+
auto d_bias_mat = framework::EigenVector<T>::Flatten(*d_bias);
178178
d_bias_mat.device(place) = d_out_mat.sum(Eigen::DSizes<int, 1>(0));
179179
}
180180
}

0 commit comments

Comments
 (0)