Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compiler warning messages #597

Open
wants to merge 1 commit into
base: next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ std::vector<float> Network::winograd_transform_f(const std::vector<float>& f,
// transpose(G.dot(f).dot(G.transpose()))
// U matrix is transposed for better memory layout in SGEMM
auto U = std::vector<float>(WINOGRAD_TILE * outputs * channels);
auto G = std::array<float, WINOGRAD_TILE>{ 1.0, 0.0, 0.0,
auto G = std::array<float, WINOGRAD_TILE>{{ 1.0, 0.0, 0.0,
0.5, 0.5, 0.5,
0.5, -0.5, 0.5,
0.0, 0.0, 1.0};
0.0, 0.0, 1.0 }};
auto temp = std::array<float, 12>{};

for (auto o = 0; o < outputs; o++) {
Expand Down Expand Up @@ -1070,7 +1070,7 @@ Network::Netresult Network::get_scored_moves_internal(const BoardHistory& pos, N
std::vector<float> winrate_out(1);
// Data layout is input_data[(c * height + h) * width + w]
input_data.reserve(get_input_channels() * width * height);
for (int c = 0; c < get_input_channels() - 3; ++c) {
for (unsigned int c = 0; c < get_input_channels() - 3; ++c) {
for (int i = 0; i < 64; ++i) {
input_data.emplace_back(net_t(planes.bit[c][i]));
}
Expand Down
2 changes: 1 addition & 1 deletion src/syzygy/tbprobe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1464,7 +1464,6 @@ bool Tablebases::root_probe(Position& pos, const std::vector<UCTNode::node_ptr_t
// Check whether a position was repeated since the last zeroing move.
bool rep = pos.has_repeated();

int dtz, bound = true ? 900 : 1;
std::vector<int> ranks;
ranks.reserve(rootMoves.size());
int best_rank = -1000;
Expand All @@ -1474,6 +1473,7 @@ bool Tablebases::root_probe(Position& pos, const std::vector<UCTNode::node_ptr_t
{
pos.do_move(m->get_move(), st);

int dtz;
// Calculate dtz for the current move counting from the root position
if (pos.rule50_count() == 0)
{
Expand Down