Commit 1a8ddcca authored by fengzch-das's avatar fengzch-das
Browse files

fix:编译器无法正确解析模板成员函数

parent c9f7f675
...@@ -215,7 +215,7 @@ __global__ void act_backward_kernel(const scalar_t* grad, const scalar_t* X_ptr, ...@@ -215,7 +215,7 @@ __global__ void act_backward_kernel(const scalar_t* grad, const scalar_t* X_ptr,
Point p(p_ptr + i*3); Point p(p_ptr + i*3);
PointGrad dq(grad + i*3); PointGrad dq(grad + i*3);
Eigen::Map<PointGrad>(dp + i*3) = dq * X.Matrix4x4().block<3,3>(0,0); Eigen::Map<PointGrad>(dp + i*3) = dq * X.Matrix4x4().template block<3,3>(0,0);
Eigen::Map<Grad>(dX + i*Group::N) = dq * Group::act_jacobian(X*p); Eigen::Map<Grad>(dX + i*Group::N) = dq * Group::act_jacobian(X*p);
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment