提交 9569255a 编写于 作者: W wanghaoshuang

Fix ptr type

上级 12440509
...@@ -83,7 +83,7 @@ class ClipGradKernel : public framework::OpKernel { ...@@ -83,7 +83,7 @@ class ClipGradKernel : public framework::OpKernel {
if (d_x != nullptr) { if (d_x != nullptr) {
auto* x = context.Input<Tensor>("X"); auto* x = context.Input<Tensor>("X");
int64_t numel = d_out->numel(); int64_t numel = d_out->numel();
auto d_x_data = d_x->mutable_data<T>(context.GetPlace()); auto* d_x_data = d_x->mutable_data<T>(context.GetPlace());
const T* d_out_data = d_out->data<T>(); const T* d_out_data = d_out->data<T>();
const T* x_data = x->data<T>(); const T* x_data = x->data<T>();
Transform<Place> trans; Transform<Place> trans;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册