-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Quantises Policy Network L1. Passed STC: LLR: 2.92 (-2.94,2.94) <0.00,4.00> Total: 4000 W: 1028 L: 867 D: 2105 Ptnml(0-2): 40, 417, 946, 536, 61 https://montychess.org/tests/view/66bd67dc68e8f7e2fe23ccdc Passed LTC: LLR: 2.94 (-2.94,2.94) <1.00,5.00> Total: 5382 W: 1181 L: 1021 D: 3180 Ptnml(0-2): 30, 550, 1376, 700, 35 https://montychess.org/tests/view/66bd6d5568e8f7e2fe23cd4b Bench: 2233112
- Loading branch information
Showing
13 changed files
with
243 additions
and
83 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
mod accumulator; | ||
mod activation; | ||
mod layer; | ||
mod policy; | ||
mod value; | ||
|
||
pub use policy::{PolicyFileDefaultName, PolicyNetwork, SubNet}; | ||
pub use policy::{PolicyFileDefaultName, PolicyNetwork, UnquantisedPolicyNetwork}; | ||
pub use value::{UnquantisedValueNetwork, ValueFileDefaultName, ValueNetwork}; | ||
|
||
const QA: i16 = 512; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
pub trait Activation { | ||
fn activate(x: f32) -> f32; | ||
} | ||
|
||
pub struct ReLU; | ||
impl Activation for ReLU { | ||
#[inline] | ||
fn activate(x: f32) -> f32 { | ||
x.max(0.0) | ||
} | ||
} | ||
|
||
pub struct SCReLU; | ||
impl Activation for SCReLU { | ||
#[inline] | ||
fn activate(x: f32) -> f32 { | ||
x.clamp(0.0, 1.0).powi(2) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.