diff --git a/mshadow/tensor_container.h b/mshadow/tensor_container.h index dbf250ceed28..19ebc2658040 100644 --- a/mshadow/tensor_container.h +++ b/mshadow/tensor_container.h @@ -49,7 +49,7 @@ class TensorContainer: public Tensor { */ explicit TensorContainer(const Shape &shape, DType initv) { this->pad_ = MSHADOW_ALLOC_PAD; - data_.dptr = NULL; + data_.dptr_ = NULL; this->AllocByShape(shape); (*this) = initv; }