Skip to content

Commit

Permalink
[src] Fix infinite recursion with -DDOUBLE_PRECISION=1. Thx: @hwiorn (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
huangruizhe authored and danpovey committed Nov 27, 2018
1 parent 132eb42 commit 84435ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nnet3/nnet-parse.cc
Original file line number Diff line number Diff line change
Expand Up @@ -518,12 +518,12 @@ std::string SummarizeVector(const VectorBase<float> &vec) {
}

std::string SummarizeVector(const VectorBase<double> &vec) {
Vector<BaseFloat> vec_copy(vec);
Vector<float> vec_copy(vec);
return SummarizeVector(vec_copy);
}

std::string SummarizeVector(const CuVectorBase<BaseFloat> &cu_vec) {
Vector<BaseFloat> vec(cu_vec);
Vector<float> vec(cu_vec);
return SummarizeVector(vec);
}

Expand Down

0 comments on commit 84435ff

Please sign in to comment.