Skip to content

Commit

Permalink
Revert "Revert "[src] Fix infinite recursion with -DDOUBLE_PRECISION=…
Browse files Browse the repository at this point in the history
…1. Thx: @hwiorn (#2875) (#2876)" (#2877)" (#2878)

This reverts commit b196b7f.
  • Loading branch information
danpovey authored Nov 27, 2018
1 parent b196b7f commit 286e912
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 286e912

Please sign in to comment.