Skip to content

Commit

Permalink
remove sf16 node limit bc
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Jul 11, 2023
1 parent b8e46a9 commit b7d30c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,16 +207,14 @@ impl fmt::Display for BatchId {
#[derive(Debug, Copy, Clone, Deserialize)]
pub struct NodeLimit {
classical: u64,
sf15: u64,
#[serde(default)]
sf16: Option<u64>,
sf16: u64,
}

impl NodeLimit {
pub fn get(&self, flavor: EvalFlavor) -> u64 {
match flavor {
EvalFlavor::Hce => self.classical,
EvalFlavor::Nnue => self.sf16.unwrap_or(self.sf15), // TODO: remove bc
EvalFlavor::Nnue => self.sf16,
}
}
}
Expand Down

0 comments on commit b7d30c5

Please sign in to comment.