Skip to content

Commit

Permalink
chore: hopefully fix policy inference
Browse files Browse the repository at this point in the history
  • Loading branch information
raklaptudirm committed Jun 6, 2024
1 parent d7f6efb commit dd9b3d6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/mcts/policy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,12 @@ impl PolicyNetwork {
let from_subnet = &self.subnets[(mov.source() as usize).min(49)];
let from_vec = from_subnet.out(feats);

let to_subnet = &self.subnets[50 + (mov.target() as usize).min(48)];
let target = if mov.is_single() {
63
} else {
mov.target() as usize
};
let to_subnet = &self.subnets[50 + (target).min(48)];
let to_vec = to_subnet.out(feats);

from_vec.dot(&to_vec)
Expand Down

0 comments on commit dd9b3d6

Please sign in to comment.