Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Fixes deprecation warning in MiniGo #221

Merged
merged 3 commits into from
Nov 12, 2019
Merged
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
2 changes: 1 addition & 1 deletion MiniGo/Strategies/MCTS/MCTSModelBasePredictor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ extension BoardState {
// boardSize, featurePlanes]` order.
//
// Rotate our inputs to this order by transposing and reshape to a single-element batch.
return featureTensor.transposed(withPermutations: 1, 2, 0)
return featureTensor.transposed(permutation: 1, 2, 0)
.reshaped(to: [1, boardSize, boardSize, 17])
}
}
Expand Down