[INFO] cloning repository https://github.com/miny342/toy-deeplearning [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/miny342/toy-deeplearning" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fminy342%2Ftoy-deeplearning", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fminy342%2Ftoy-deeplearning'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 32822f358a25cb555633e95e98e87e426f48c405 [INFO] checking miny342/toy-deeplearning against master#ac385a5af6d9fa8399a0cec799833cd28324abf8 for pr-125107 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fminy342%2Ftoy-deeplearning" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/miny342/toy-deeplearning on toolchain ac385a5af6d9fa8399a0cec799833cd28324abf8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ac385a5af6d9fa8399a0cec799833cd28324abf8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/miny342/toy-deeplearning [INFO] finished tweaking git repo https://github.com/miny342/toy-deeplearning [INFO] tweaked toml for git repo https://github.com/miny342/toy-deeplearning written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/miny342/toy-deeplearning already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ac385a5af6d9fa8399a0cec799833cd28324abf8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking miny342/toy-deeplearning against try#9130c02509ce15f69dc5da6359bb9d140d41d4ac for pr-125107 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fminy342%2Ftoy-deeplearning" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/miny342/toy-deeplearning on toolchain 9130c02509ce15f69dc5da6359bb9d140d41d4ac [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9130c02509ce15f69dc5da6359bb9d140d41d4ac" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/miny342/toy-deeplearning [INFO] finished tweaking git repo https://github.com/miny342/toy-deeplearning [INFO] tweaked toml for git repo https://github.com/miny342/toy-deeplearning written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/miny342/toy-deeplearning already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9130c02509ce15f69dc5da6359bb9d140d41d4ac" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking miny342/toy-deeplearning against try#9130c02509ce15f69dc5da6359bb9d140d41d4ac for pr-125107 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fminy342%2Ftoy-deeplearning" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/miny342/toy-deeplearning on toolchain 9130c02509ce15f69dc5da6359bb9d140d41d4ac [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9130c02509ce15f69dc5da6359bb9d140d41d4ac" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/miny342/toy-deeplearning [INFO] finished tweaking git repo https://github.com/miny342/toy-deeplearning [INFO] tweaked toml for git repo https://github.com/miny342/toy-deeplearning written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/miny342/toy-deeplearning already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9130c02509ce15f69dc5da6359bb9d140d41d4ac" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking miny342/toy-deeplearning against try#9130c02509ce15f69dc5da6359bb9d140d41d4ac for pr-125107 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fminy342%2Ftoy-deeplearning" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/miny342/toy-deeplearning on toolchain 9130c02509ce15f69dc5da6359bb9d140d41d4ac [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9130c02509ce15f69dc5da6359bb9d140d41d4ac" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/miny342/toy-deeplearning [INFO] finished tweaking git repo https://github.com/miny342/toy-deeplearning [INFO] tweaked toml for git repo https://github.com/miny342/toy-deeplearning written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/miny342/toy-deeplearning already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9130c02509ce15f69dc5da6359bb9d140d41d4ac" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rand_distr v0.4.3 [INFO] [stderr] Downloaded libm v0.2.8 [INFO] [stderr] Downloaded getrandom v0.2.14 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+9130c02509ce15f69dc5da6359bb9d140d41d4ac" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] aa293103a13d3e25cfafae14622bc13facf0bd8a8e3e654c80a3bd4e83ed693e [INFO] running `Command { std: "docker" "start" "-a" "aa293103a13d3e25cfafae14622bc13facf0bd8a8e3e654c80a3bd4e83ed693e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "aa293103a13d3e25cfafae14622bc13facf0bd8a8e3e654c80a3bd4e83ed693e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aa293103a13d3e25cfafae14622bc13facf0bd8a8e3e654c80a3bd4e83ed693e", kill_on_drop: false }` [INFO] [stdout] aa293103a13d3e25cfafae14622bc13facf0bd8a8e3e654c80a3bd4e83ed693e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+9130c02509ce15f69dc5da6359bb9d140d41d4ac" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2cf46d44f17d4c29a25005504dd56d24d121be039a37bf5baf29afb3bc761b4d [INFO] running `Command { std: "docker" "start" "-a" "2cf46d44f17d4c29a25005504dd56d24d121be039a37bf5baf29afb3bc761b4d", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Checking getrandom v0.2.14 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Checking toy-deeplearning v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `learning_rate` [INFO] [stdout] --> src/nn2.rs:27:26 [INFO] [stdout] | [INFO] [stdout] 27 | fn update(&mut self, learning_rate: f64) {} [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_learning_rate` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `learning_rate` [INFO] [stdout] --> src/nn2.rs:27:26 [INFO] [stdout] | [INFO] [stdout] 27 | fn update(&mut self, learning_rate: f64) {} [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_learning_rate` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l` [INFO] [stdout] --> src/main.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | for l in 0..1 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l` [INFO] [stdout] --> src/main.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | for l in 0..1 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `zeroed`, `normal`, `attach`, and `sum` are never used [INFO] [stdout] --> src/nn.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 21 | impl Matrix { [INFO] [stdout] | ------------------------------------------------- associated items in this implementation [INFO] [stdout] 22 | fn zeroed() -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn normal() -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | fn attach f64>(&self, mut f: F) -> Matrix { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | fn sum(&self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Layer` is never used [INFO] [stdout] --> src/nn.rs:136:7 [INFO] [stdout] | [INFO] [stdout] 136 | trait Layer { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LeakyRelu` is never constructed [INFO] [stdout] --> src/nn.rs:141:8 [INFO] [stdout] | [INFO] [stdout] 141 | struct LeakyRelu { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/nn.rs:146:8 [INFO] [stdout] | [INFO] [stdout] 145 | impl LeakyRelu { [INFO] [stdout] | ---------------------------------------------------- associated function in this implementation [INFO] [stdout] 146 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sigmoid` is never constructed [INFO] [stdout] --> src/nn.rs:161:8 [INFO] [stdout] | [INFO] [stdout] 161 | struct Sigmoid { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/nn.rs:166:8 [INFO] [stdout] | [INFO] [stdout] 165 | impl Sigmoid { [INFO] [stdout] | -------------------------------------------------- associated function in this implementation [INFO] [stdout] 166 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Affine` is never constructed [INFO] [stdout] --> src/nn.rs:181:8 [INFO] [stdout] | [INFO] [stdout] 181 | struct Affine { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/nn.rs:190:8 [INFO] [stdout] | [INFO] [stdout] 189 | impl Affine { [INFO] [stdout] | -------------------------------------------------------------------- associated function in this implementation [INFO] [stdout] 190 | fn new(w: Matrix, b: Matrix<1, O>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `softmax` is never used [INFO] [stdout] --> src/nn.rs:218:4 [INFO] [stdout] | [INFO] [stdout] 218 | fn softmax(m: Matrix) -> Matrix { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cross_entropy_error` is never used [INFO] [stdout] --> src/nn.rs:248:4 [INFO] [stdout] | [INFO] [stdout] 248 | fn cross_entropy_error(y: Matrix, t: Matrix) -> Matrix { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SoftmaxWithLoss` is never constructed [INFO] [stdout] --> src/nn.rs:261:8 [INFO] [stdout] | [INFO] [stdout] 261 | struct SoftmaxWithLoss { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `forward`, and `backward` are never used [INFO] [stdout] --> src/nn.rs:268:8 [INFO] [stdout] | [INFO] [stdout] 267 | impl SoftmaxWithLoss { [INFO] [stdout] | ---------------------------------------------------------- associated items in this implementation [INFO] [stdout] 268 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 271 | fn forward(&mut self, x: Matrix, t: Matrix) -> Matrix { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 277 | fn backward(&self) -> Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TwoLayerNet` is never constructed [INFO] [stdout] --> src/nn.rs:282:12 [INFO] [stdout] | [INFO] [stdout] 282 | pub struct TwoLayerNet { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `predict`, `loss`, `accuracy`, and `train` are never used [INFO] [stdout] --> src/nn.rs:290:12 [INFO] [stdout] | [INFO] [stdout] 289 | impl TwoLayerNet { [INFO] [stdout] | -------------------------------------------------------------------------------------------- associated items in this implementation [INFO] [stdout] 290 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 298 | pub fn predict(&mut self, x: Matrix) -> Matrix { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 304 | pub fn loss(&mut self, x: Matrix, t: Matrix) -> Matrix { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 308 | pub fn accuracy(&mut self, x: Matrix, t: Matrix) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 340 | pub fn train(&mut self, x: Matrix, t: Matrix, learning_rate: f64) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_onedim` is never used [INFO] [stdout] --> src/matrix.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 79 | impl Matrix { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn new_onedim(size: (usize, usize), it: &[f64]) -> Matrix { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/nn2.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 38 | impl Affine { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 39 | fn new(w: Matrix, b: Matrix) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `zeroed`, `normal`, `attach`, and `sum` are never used [INFO] [stdout] --> src/nn.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 21 | impl Matrix { [INFO] [stdout] | ------------------------------------------------- associated items in this implementation [INFO] [stdout] 22 | fn zeroed() -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn normal() -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | fn attach f64>(&self, mut f: F) -> Matrix { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | fn sum(&self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Layer` is never used [INFO] [stdout] --> src/nn.rs:136:7 [INFO] [stdout] | [INFO] [stdout] 136 | trait Layer { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LeakyRelu` is never constructed [INFO] [stdout] --> src/nn.rs:141:8 [INFO] [stdout] | [INFO] [stdout] 141 | struct LeakyRelu { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/nn.rs:146:8 [INFO] [stdout] | [INFO] [stdout] 145 | impl LeakyRelu { [INFO] [stdout] | ---------------------------------------------------- associated function in this implementation [INFO] [stdout] 146 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sigmoid` is never constructed [INFO] [stdout] --> src/nn.rs:161:8 [INFO] [stdout] | [INFO] [stdout] 161 | struct Sigmoid { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/nn.rs:166:8 [INFO] [stdout] | [INFO] [stdout] 165 | impl Sigmoid { [INFO] [stdout] | -------------------------------------------------- associated function in this implementation [INFO] [stdout] 166 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Affine` is never constructed [INFO] [stdout] --> src/nn.rs:181:8 [INFO] [stdout] | [INFO] [stdout] 181 | struct Affine { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/nn.rs:190:8 [INFO] [stdout] | [INFO] [stdout] 189 | impl Affine { [INFO] [stdout] | -------------------------------------------------------------------- associated function in this implementation [INFO] [stdout] 190 | fn new(w: Matrix, b: Matrix<1, O>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `softmax` is never used [INFO] [stdout] --> src/nn.rs:218:4 [INFO] [stdout] | [INFO] [stdout] 218 | fn softmax(m: Matrix) -> Matrix { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cross_entropy_error` is never used [INFO] [stdout] --> src/nn.rs:248:4 [INFO] [stdout] | [INFO] [stdout] 248 | fn cross_entropy_error(y: Matrix, t: Matrix) -> Matrix { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SoftmaxWithLoss` is never constructed [INFO] [stdout] --> src/nn.rs:261:8 [INFO] [stdout] | [INFO] [stdout] 261 | struct SoftmaxWithLoss { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `forward`, and `backward` are never used [INFO] [stdout] --> src/nn.rs:268:8 [INFO] [stdout] | [INFO] [stdout] 267 | impl SoftmaxWithLoss { [INFO] [stdout] | ---------------------------------------------------------- associated items in this implementation [INFO] [stdout] 268 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 271 | fn forward(&mut self, x: Matrix, t: Matrix) -> Matrix { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 277 | fn backward(&self) -> Matrix { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TwoLayerNet` is never constructed [INFO] [stdout] --> src/nn.rs:282:12 [INFO] [stdout] | [INFO] [stdout] 282 | pub struct TwoLayerNet { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `predict`, `loss`, `accuracy`, and `train` are never used [INFO] [stdout] --> src/nn.rs:290:12 [INFO] [stdout] | [INFO] [stdout] 289 | impl TwoLayerNet { [INFO] [stdout] | -------------------------------------------------------------------------------------------- associated items in this implementation [INFO] [stdout] 290 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 298 | pub fn predict(&mut self, x: Matrix) -> Matrix { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 304 | pub fn loss(&mut self, x: Matrix, t: Matrix) -> Matrix { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 308 | pub fn accuracy(&mut self, x: Matrix, t: Matrix) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 340 | pub fn train(&mut self, x: Matrix, t: Matrix, learning_rate: f64) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_onedim` is never used [INFO] [stdout] --> src/matrix.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 79 | impl Matrix { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn new_onedim(size: (usize, usize), it: &[f64]) -> Matrix { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/nn2.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 38 | impl Affine { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 39 | fn new(w: Matrix, b: Matrix) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.83s [INFO] running `Command { std: "docker" "inspect" "2cf46d44f17d4c29a25005504dd56d24d121be039a37bf5baf29afb3bc761b4d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2cf46d44f17d4c29a25005504dd56d24d121be039a37bf5baf29afb3bc761b4d", kill_on_drop: false }` [INFO] [stdout] 2cf46d44f17d4c29a25005504dd56d24d121be039a37bf5baf29afb3bc761b4d