Cleaned up source code.

This commit is contained in:
nodchip
2020-08-10 08:52:34 +09:00
parent 7f1f08d094
commit 4f97d3446d
12 changed files with 22 additions and 41 deletions

View File

@@ -1,4 +1,4 @@
/*
/*
Stockfish, a UCI chess playing engine derived from Glaurung 2.1
Copyright (C) 2004-2020 The Stockfish developers (see AUTHORS file)
@@ -171,7 +171,7 @@ namespace Eval::NNUE::Features {
}
}
// Get a list of indices whose values have changed from the previous one in the feature quantity
// Get a list of indices whose values have changed from the previous one in the feature quantity
template <typename IndexListType>
static void CollectChangedIndices(
const Position& pos, const TriggerEvent trigger, const Color perspective,

View File

@@ -67,7 +67,7 @@ namespace Eval::NNUE::Layers {
PreviousLayer::GetStructureString() + ")";
}
// Read network parameters
// Read network parameters
bool ReadParameters(std::istream& stream) {
if (!previous_layer_.ReadParameters(stream)) return false;
stream.read(reinterpret_cast<char*>(biases_),

View File

@@ -193,7 +193,7 @@ namespace Eval::NNUE::Layers {
// Make the learning class a friend
friend class Trainer<ClippedReLU>;
PreviousLayer previous_layer_;
PreviousLayer previous_layer_;
};
} // namespace Eval::NNUE::Layers