In this page, the following code
let linear_1: LayerConfig = LayerConfig::new("linear1", LinearConfig { output_size: 500 })
let linear_network_with_one_layer: Layer = Layer::from_config(backend, &linear_1);
does not compile on the current version of Juice (0.3.0), both because of the missing semicolon and because Layer now has a generic parameter.
I would guess that there are other discrepancies, but I can't comment on the code in the later chapters because I haven't yet figured out basic usage of Juice (I wouldn't expect to be able to get the later code to compile without first figuring out a bunch of things that the book does not explain to me, whether it's correct or not).
In this page, the following code
does not compile on the current version of Juice (0.3.0), both because of the missing semicolon and because Layer now has a generic parameter.
I would guess that there are other discrepancies, but I can't comment on the code in the later chapters because I haven't yet figured out basic usage of Juice (I wouldn't expect to be able to get the later code to compile without first figuring out a bunch of things that the book does not explain to me, whether it's correct or not).