We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 18f0c40 + 01fa4cc commit 55c2c73Copy full SHA for 55c2c73
paddle/operators/bilinear_tensor_product_op.h
@@ -174,7 +174,7 @@ class BilinearTensorProductGradKernel : public framework::OpKernel<T> {
174
// Caculate the gradient of Input(Bias).
175
if (d_bias) {
176
d_bias->mutable_data<T>(ctx.GetPlace());
177
- auto d_bias_mat = EigenMatrix<T>::From(*d_bias);
+ auto d_bias_mat = framework::EigenVector<T>::Flatten(*d_bias);
178
d_bias_mat.device(place) = d_out_mat.sum(Eigen::DSizes<int, 1>(0));
179
}
180
0 commit comments