Skip to content

Commit

Permalink
Merge pull request apache#74 from piiswrong/master
Browse files Browse the repository at this point in the history
shape uninitialized fix
  • Loading branch information
piiswrong committed Nov 19, 2015
2 parents 74be312 + 5f95578 commit f8ed18e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mshadow/expr_engine-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,10 @@ template<int dim, typename DType>
struct ShapeCheck<dim, ScalarExp<DType> > {
inline static Shape<dim> Check(const ScalarExp<DType> &exp) {
// use lowest dimension to mark scalar exp
Shape<dim> shape; shape[0] = 0;
Shape<dim> shape;
for (int i = 0; i < dim; ++i) {
shape[i] = 0;
}
return shape;
}
};
Expand Down

0 comments on commit f8ed18e

Please sign in to comment.