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

Commit 8253c35

Browse files
valeriyvandan-zheng
authored andcommitted
Fixes deprecation warning in MiniGo (#221)
1 parent 23b88cc commit 8253c35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MiniGo/Strategies/MCTS/MCTSModelBasePredictor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ extension BoardState {
119119
// boardSize, featurePlanes]` order.
120120
//
121121
// Rotate our inputs to this order by transposing and reshape to a single-element batch.
122-
return featureTensor.transposed(withPermutations: 1, 2, 0)
122+
return featureTensor.transposed(permutation: 1, 2, 0)
123123
.reshaped(to: [1, boardSize, boardSize, 17])
124124
}
125125
}

0 commit comments

Comments
 (0)