Skip to content

Commit

Permalink
Merge pull request apache#26 from jpauwels/refactor
Browse files Browse the repository at this point in the history
Fixed compile error in TensorContainer initialising constructor
  • Loading branch information
tqchen committed Feb 19, 2015
2 parents 574c679 + 9460b8a commit a909a8a
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 a909a8a

Please sign in to comment.