Skip to content

Commit

Permalink
Replace float with auto.
Browse files Browse the repository at this point in the history
  • Loading branch information
TFiFiE authored Nov 16, 2019
1 parent 827b396 commit bcf6e3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ void Network::benchmark(const GameState* const state, const int iterations) {

template<class container>
void process_bn_var(container& weights) {
constexpr float epsilon = 1e-5f;
constexpr auto epsilon = 1e-5f;
for (auto&& w : weights) {
w = 1.0f / std::sqrt(w + epsilon);
}
Expand Down

0 comments on commit bcf6e3f

Please sign in to comment.