Skip to content

Commit

Permalink
Fixed compile error in TensorContainer initialising constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
jpauwels committed Feb 19, 2015
1 parent 00dab41 commit 9460b8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mshadow/tensor_container.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TensorContainer: public Tensor<Device, dimension, DType> {
*/
explicit TensorContainer(const Shape<dimension> &shape, DType initv) {
this->pad_ = MSHADOW_ALLOC_PAD;
data_.dptr = NULL;
data_.dptr_ = NULL;
this->AllocByShape(shape);
(*this) = initv;
}
Expand Down

0 comments on commit 9460b8a

Please sign in to comment.