[INFO] fetching crate bellande_artificial_intelligence_framework 0.1.0... [INFO] testing bellande_artificial_intelligence_framework-0.1.0 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate bellande_artificial_intelligence_framework 0.1.0 into /workspace/builds/worker-2-tc1/source [INFO] started tweaking crates.io crate bellande_artificial_intelligence_framework 0.1.0 [INFO] finished tweaking crates.io crate bellande_artificial_intelligence_framework 0.1.0 [INFO] tweaked toml for crates.io crate bellande_artificial_intelligence_framework 0.1.0 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate bellande_artificial_intelligence_framework 0.1.0 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 131 packages to latest compatible versions [INFO] [stderr] Adding bincode v1.3.3 (available: v2.0.1) [INFO] [stderr] Adding cudarc v0.9.15 (available: v0.17.3) [INFO] [stderr] Adding rand v0.8.5 (available: v0.9.2) [INFO] [stderr] Adding rand_distr v0.4.3 (available: v0.5.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pathfinder_simd v0.5.5 [INFO] [stderr] Downloaded yeslogic-fontconfig-sys v6.0.0 [INFO] [stderr] Downloaded plotters-bitmap v0.3.7 [INFO] [stderr] Downloaded dwrote v0.11.4 [INFO] [stderr] Downloaded font-kit v0.14.3 [INFO] [stderr] Downloaded cudarc v0.9.15 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dfc4787b4d3ace02a42f4439305fecd6f327c59044b04fb14898eed033d8d4da [INFO] running `Command { std: "docker" "start" "-a" "dfc4787b4d3ace02a42f4439305fecd6f327c59044b04fb14898eed033d8d4da", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dfc4787b4d3ace02a42f4439305fecd6f327c59044b04fb14898eed033d8d4da", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dfc4787b4d3ace02a42f4439305fecd6f327c59044b04fb14898eed033d8d4da", kill_on_drop: false }` [INFO] [stdout] dfc4787b4d3ace02a42f4439305fecd6f327c59044b04fb14898eed033d8d4da [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1bdfc4010eb957180f70399ab4d7baf6cefe72cc5a15dd4c04b52c947ef79091 [INFO] running `Command { std: "docker" "start" "-a" "1bdfc4010eb957180f70399ab4d7baf6cefe72cc5a15dd4c04b52c947ef79091", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] [stderr] Compiling simd-adler32 v0.3.7 [INFO] [stderr] Compiling adler2 v2.0.1 [INFO] [stderr] Compiling libloading v0.8.8 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling yeslogic-fontconfig-sys v6.0.0 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling freetype-sys v0.20.1 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling weezl v0.1.10 [INFO] [stderr] Compiling dirs-sys v0.5.0 [INFO] [stderr] Compiling pathfinder_simd v0.5.5 [INFO] [stderr] Compiling plotters-backend v0.3.7 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling font-kit v0.14.3 [INFO] [stderr] Compiling jpeg-decoder v0.3.2 [INFO] [stderr] Compiling bytemuck v1.23.2 [INFO] [stderr] Compiling dlib v0.5.2 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling dirs v6.0.0 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling fdeflate v0.3.7 [INFO] [stderr] Compiling sys-info v0.9.1 [INFO] [stderr] Compiling iana-time-zone v0.1.63 [INFO] [stderr] Compiling float-ord v0.3.2 [INFO] [stderr] Compiling unsafe-libyaml v0.2.11 [INFO] [stderr] Compiling ttf-parser v0.20.0 [INFO] [stderr] Compiling gif v0.12.0 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling plotters-svg v0.3.7 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling num_cpus v1.17.0 [INFO] [stderr] Compiling serde_yaml v0.9.34+deprecated [INFO] [stderr] Compiling pathfinder_geometry v0.5.1 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling rand_distr v0.4.3 [INFO] [stderr] Compiling png v0.17.16 [INFO] [stderr] Compiling image v0.24.9 [INFO] [stderr] Compiling plotters-bitmap v0.3.7 [INFO] [stderr] Compiling plotters v0.3.7 [INFO] [stderr] Compiling bellande_artificial_intelligence_framework v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `cuda` [INFO] [stdout] --> src/core/device.rs:54:11 [INFO] [stdout] | [INFO] [stdout] 54 | #[cfg(feature = "cuda")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cudarc` [INFO] [stdout] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cuda` [INFO] [stdout] --> src/core/device.rs:62:11 [INFO] [stdout] | [INFO] [stdout] 62 | #[cfg(feature = "cuda")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cudarc` [INFO] [stdout] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cuda` [INFO] [stdout] --> src/core/device.rs:67:11 [INFO] [stdout] | [INFO] [stdout] 67 | #[cfg(feature = "cuda")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cudarc` [INFO] [stdout] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cuda` [INFO] [stdout] --> src/core/device.rs:72:11 [INFO] [stdout] | [INFO] [stdout] 72 | #[cfg(feature = "cuda")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cudarc` [INFO] [stdout] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cuda` [INFO] [stdout] --> src/core/device.rs:35:15 [INFO] [stdout] | [INFO] [stdout] 35 | #[cfg(feature = "cuda")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cudarc` [INFO] [stdout] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cuda` [INFO] [stdout] --> src/core/device.rs:42:19 [INFO] [stdout] | [INFO] [stdout] 42 | #[cfg(not(feature = "cuda"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cudarc` [INFO] [stdout] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cuda` [INFO] [stdout] --> src/core/device.rs:81:23 [INFO] [stdout] | [INFO] [stdout] 81 | #[cfg(feature = "cuda")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cudarc` [INFO] [stdout] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cuda` [INFO] [stdout] --> src/core/device.rs:86:27 [INFO] [stdout] | [INFO] [stdout] 86 | #[cfg(not(feature = "cuda"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cudarc` [INFO] [stdout] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cuda` [INFO] [stdout] --> src/core/device.rs:103:23 [INFO] [stdout] | [INFO] [stdout] 103 | #[cfg(feature = "cuda")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cudarc` [INFO] [stdout] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cuda` [INFO] [stdout] --> src/core/device.rs:108:27 [INFO] [stdout] | [INFO] [stdout] 108 | #[cfg(not(feature = "cuda"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cudarc` [INFO] [stdout] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/loss/bce.rs:349:53 [INFO] [stdout] | [INFO] [stdout] 349 | let grad = grad_output.data[(outer * inner_size + inner)]; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 349 - let grad = grad_output.data[(outer * inner_size + inner)]; [INFO] [stdout] 349 + let grad = grad_output.data[outer * inner_size + inner]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/loss/bce.rs:379:53 [INFO] [stdout] | [INFO] [stdout] 379 | let grad = grad_output.data[(outer * inner_size + inner)] / stride; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 379 - let grad = grad_output.data[(outer * inner_size + inner)] / stride; [INFO] [stdout] 379 + let grad = grad_output.data[outer * inner_size + inner] / stride; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/loss/bce.rs:427:53 [INFO] [stdout] | [INFO] [stdout] 427 | let grad = grad_output.data[(outer * inner_size + inner)]; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 427 - let grad = grad_output.data[(outer * inner_size + inner)]; [INFO] [stdout] 427 + let grad = grad_output.data[outer * inner_size + inner]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cuda` [INFO] [stdout] --> src/bellande_artificial_intelligence_framework.rs:72:19 [INFO] [stdout] | [INFO] [stdout] 72 | #[cfg(feature = "cuda")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cudarc` [INFO] [stdout] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cuda` [INFO] [stdout] --> src/bellande_artificial_intelligence_framework.rs:78:23 [INFO] [stdout] | [INFO] [stdout] 78 | #[cfg(not(feature = "cuda"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cudarc` [INFO] [stdout] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cuda` [INFO] [stdout] --> src/bellande_artificial_intelligence_framework.rs:108:18 [INFO] [stdout] | [INFO] [stdout] 108 | cfg!(feature = "cuda"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cudarc` [INFO] [stdout] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `device_id` [INFO] [stdout] --> src/core/device.rs:80:26 [INFO] [stdout] | [INFO] [stdout] 80 | Device::CUDA(device_id) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_device_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `device_id` [INFO] [stdout] --> src/core/device.rs:102:26 [INFO] [stdout] | [INFO] [stdout] 102 | Device::CUDA(device_id) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_device_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tensor` [INFO] [stdout] --> src/data/augmentation.rs:109:21 [INFO] [stdout] | [INFO] [stdout] 109 | fn apply(&self, tensor: &Tensor) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_tensor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bit_depth` is assigned to, but never used [INFO] [stdout] --> src/data/image_folder.rs:680:17 [INFO] [stdout] | [INFO] [stdout] 680 | let mut bit_depth = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_bit_depth` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `bit_depth` is never read [INFO] [stdout] --> src/data/image_folder.rs:707:21 [INFO] [stdout] | [INFO] [stdout] 707 | bit_depth = ihdr_data[0]; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mask` [INFO] [stdout] --> src/layer/activation.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | let mask: Vec = output [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mask` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `batch_grad` [INFO] [stdout] --> src/layer/layer_norm.rs:136:21 [INFO] [stdout] | [INFO] [stdout] 136 | let batch_grad = &grad_output.data[start_idx..end_idx]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_batch_grad` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bias` [INFO] [stdout] --> src/layer/layer_norm.rs:149:56 [INFO] [stdout] | [INFO] [stdout] 149 | if let (Some(ref weight), Some(ref bias)) = (&self.weight, &self.bias) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bias` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r_gate` [INFO] [stdout] --> src/layer/recurrent.rs:223:14 [INFO] [stdout] | [INFO] [stdout] 223 | let (r_gate, z_gate, n_gate) = (&chunks[0], &chunks[1], &chunks[2]); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_r_gate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function cannot return without recursing [INFO] [stdout] --> src/models/vgg.rs:211:5 [INFO] [stdout] | [INFO] [stdout] 211 | fn forward(&mut self, input: &Tensor) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing [INFO] [stdout] 212 | self.forward(input) [INFO] [stdout] | ------------------- recursive call site [INFO] [stdout] | [INFO] [stdout] = help: a `loop` may express intention better if this is on purpose [INFO] [stdout] = note: `#[warn(unconditional_recursion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function cannot return without recursing [INFO] [stdout] --> src/models/vgg.rs:215:5 [INFO] [stdout] | [INFO] [stdout] 215 | fn backward(&mut self, grad_output: &Tensor) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing [INFO] [stdout] 216 | self.backward(grad_output) [INFO] [stdout] | -------------------------- recursive call site [INFO] [stdout] | [INFO] [stdout] = help: a `loop` may express intention better if this is on purpose [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/optim/adam.rs:148:35 [INFO] [stdout] | [INFO] [stdout] 148 | fn add_param_group(&mut self, mut group: ParameterGroup) { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/optim/rmsprop.rs:174:35 [INFO] [stdout] | [INFO] [stdout] 174 | fn add_param_group(&mut self, mut group: ParameterGroup) { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/optim/sgd.rs:149:35 [INFO] [stdout] | [INFO] [stdout] 149 | fn add_param_group(&mut self, mut group: ParameterGroup) { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `epoch` [INFO] [stdout] --> src/training/callbacks.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | epoch: usize, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_epoch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `logs` [INFO] [stdout] --> src/training/callbacks.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | logs: &HashMap, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_logs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `epoch` [INFO] [stdout] --> src/training/callbacks.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | epoch: usize, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_epoch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `logs` [INFO] [stdout] --> src/training/callbacks.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | logs: &HashMap, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_logs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `batch` [INFO] [stdout] --> src/training/callbacks.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | batch: usize, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_batch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `logs` [INFO] [stdout] --> src/training/callbacks.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | logs: &HashMap, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_logs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `batch` [INFO] [stdout] --> src/training/callbacks.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | batch: usize, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_batch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `logs` [INFO] [stdout] --> src/training/callbacks.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | logs: &HashMap, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_logs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `logs` [INFO] [stdout] --> src/training/callbacks.rs:48:34 [INFO] [stdout] | [INFO] [stdout] 48 | fn on_train_begin(&mut self, logs: &HashMap) -> Result<(), BellandeError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_logs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `logs` [INFO] [stdout] --> src/training/callbacks.rs:51:32 [INFO] [stdout] | [INFO] [stdout] 51 | fn on_train_end(&mut self, logs: &HashMap) -> Result<(), BellandeError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_logs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `best_value` is assigned to, but never used [INFO] [stdout] --> src/training/checkpoint.rs:456:21 [INFO] [stdout] | [INFO] [stdout] 456 | let mut best_value = match self.mode { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_best_value` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `best_value` is never read [INFO] [stdout] --> src/training/checkpoint.rs:465:29 [INFO] [stdout] | [INFO] [stdout] 465 | ... best_value = metadata.best_value; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/utilities/compression.rs:222:54 [INFO] [stdout] | [INFO] [stdout] 222 | fn read_bits(&mut self, reader: &mut R, mut count: u8) -> io::Result { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `needs_input_grad` is never read [INFO] [stdout] --> src/core/autograd.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct AutogradContext { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 28 | saved_tensors: Vec, [INFO] [stdout] 29 | needs_input_grad: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `degrees` is never read [INFO] [stdout] --> src/data/augmentation.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 98 | pub struct RandomRotation { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 99 | degrees: (f32, f32), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RGB` is never constructed [INFO] [stdout] --> src/data/image_decoder.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | struct RGB { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `root` is never read [INFO] [stdout] --> src/data/image_folder.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 73 | pub struct ImageFolder { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 74 | root: PathBuf, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `normalized` is never read [INFO] [stdout] --> src/layer/layer_norm.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 26 | struct LayerNormCache { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 27 | input: Tensor, [INFO] [stdout] 28 | normalized: Tensor, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `input_size` is never read [INFO] [stdout] --> src/layer/recurrent.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct LSTMCell { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 19 | input_size: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `input`, `hidden`, `cell`, and `gates` are never read [INFO] [stdout] --> src/layer/recurrent.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 28 | struct LSTMCache { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 29 | input: Tensor, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 30 | hidden: Tensor, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 31 | cell: Tensor, [INFO] [stdout] | ^^^^ [INFO] [stdout] 32 | gates: Tensor, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/layer/recurrent.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 133 | pub struct GRUCell { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 134 | input_size: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 135 | hidden_size: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 136 | weight_ih: Tensor, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 137 | weight_hh: Tensor, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 138 | bias_ih: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 139 | bias_hh: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 140 | cache: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `input`, `hidden`, and `gates` are never read [INFO] [stdout] --> src/layer/recurrent.rs:144:5 [INFO] [stdout] | [INFO] [stdout] 143 | struct GRUCache { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 144 | input: Tensor, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 145 | hidden: Tensor, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 146 | gates: Tensor, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `compute_gates`, `split_gates`, and `forward` are never used [INFO] [stdout] --> src/layer/recurrent.rs:177:8 [INFO] [stdout] | [INFO] [stdout] 149 | impl GRUCell { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 177 | fn compute_gates(&self, input: &Tensor, h_prev: &Tensor) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 193 | fn split_gates(&self, gates: &Tensor) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | fn forward(&mut self, input: &Tensor, hidden: Option) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `query`, `key`, `value`, and `attention_weights` are never read [INFO] [stdout] --> src/layer/transformer.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 33 | struct AttentionCache { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 34 | query: Tensor, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 35 | key: Tensor, [INFO] [stdout] | ^^^ [INFO] [stdout] 36 | value: Tensor, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 37 | attention_weights: Tensor, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `best_weights` is never read [INFO] [stdout] --> src/training/callbacks.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 56 | pub struct EarlyStopping { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 64 | best_weights: Option>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `decode_literal_symbol` is never used [INFO] [stdout] --> src/utilities/compression.rs:296:8 [INFO] [stdout] | [INFO] [stdout] 258 | impl Decoder { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 296 | fn decode_literal_symbol(&mut self) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/data/dataloader.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn iter(&self) -> DataLoaderIterator { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 50 | pub fn iter(&self) -> DataLoaderIterator<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `T_max` should have a snake case name [INFO] [stdout] --> src/optim/scheduler.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | T_max: usize, [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `t_max` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T_max` should have a snake case name [INFO] [stdout] --> src/optim/scheduler.rs:68:47 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn new(optimizer: Box, T_max: usize, eta_min: f32) -> Self { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `t_max` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 22.65s [INFO] running `Command { std: "docker" "inspect" "1bdfc4010eb957180f70399ab4d7baf6cefe72cc5a15dd4c04b52c947ef79091", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1bdfc4010eb957180f70399ab4d7baf6cefe72cc5a15dd4c04b52c947ef79091", kill_on_drop: false }` [INFO] [stdout] 1bdfc4010eb957180f70399ab4d7baf6cefe72cc5a15dd4c04b52c947ef79091 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 74a24d089e7e69c3df9073987b109bda4b831bac7828264be5c84e84dd9367f6 [INFO] running `Command { std: "docker" "start" "-a" "74a24d089e7e69c3df9073987b109bda4b831bac7828264be5c84e84dd9367f6", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] [stdout] warning: unexpected `cfg` condition value: `cuda` [INFO] [stdout] --> src/core/device.rs:54:11 [INFO] [stdout] | [INFO] [stdout] 54 | #[cfg(feature = "cuda")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cudarc` [INFO] [stdout] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cuda` [INFO] [stdout] --> src/core/device.rs:62:11 [INFO] [stdout] | [INFO] [stdout] 62 | #[cfg(feature = "cuda")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cudarc` [INFO] [stdout] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cuda` [INFO] [stdout] --> src/core/device.rs:67:11 [INFO] [stdout] | [INFO] [stdout] 67 | #[cfg(feature = "cuda")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cudarc` [INFO] [stdout] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cuda` [INFO] [stdout] --> src/core/device.rs:72:11 [INFO] [stdout] | [INFO] [stdout] 72 | #[cfg(feature = "cuda")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cudarc` [INFO] [stdout] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cuda` [INFO] [stdout] --> src/core/device.rs:35:15 [INFO] [stdout] | [INFO] [stdout] 35 | #[cfg(feature = "cuda")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cudarc` [INFO] [stdout] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cuda` [INFO] [stdout] --> src/core/device.rs:42:19 [INFO] [stdout] | [INFO] [stdout] 42 | #[cfg(not(feature = "cuda"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cudarc` [INFO] [stdout] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cuda` [INFO] [stdout] --> src/core/device.rs:81:23 [INFO] [stdout] | [INFO] [stdout] 81 | #[cfg(feature = "cuda")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cudarc` [INFO] [stdout] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cuda` [INFO] [stdout] --> src/core/device.rs:86:27 [INFO] [stdout] | [INFO] [stdout] 86 | #[cfg(not(feature = "cuda"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cudarc` [INFO] [stdout] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cuda` [INFO] [stdout] --> src/core/device.rs:103:23 [INFO] [stdout] | [INFO] [stdout] 103 | #[cfg(feature = "cuda")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cudarc` [INFO] [stdout] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cuda` [INFO] [stdout] --> src/core/device.rs:108:27 [INFO] [stdout] | [INFO] [stdout] 108 | #[cfg(not(feature = "cuda"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cudarc` [INFO] [stdout] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/loss/bce.rs:349:53 [INFO] [stdout] | [INFO] [stdout] 349 | let grad = grad_output.data[(outer * inner_size + inner)]; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 349 - let grad = grad_output.data[(outer * inner_size + inner)]; [INFO] [stdout] 349 + let grad = grad_output.data[outer * inner_size + inner]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/loss/bce.rs:379:53 [INFO] [stdout] | [INFO] [stdout] 379 | let grad = grad_output.data[(outer * inner_size + inner)] / stride; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 379 - let grad = grad_output.data[(outer * inner_size + inner)] / stride; [INFO] [stdout] 379 + let grad = grad_output.data[outer * inner_size + inner] / stride; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/loss/bce.rs:427:53 [INFO] [stdout] | [INFO] [stdout] 427 | let grad = grad_output.data[(outer * inner_size + inner)]; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 427 - let grad = grad_output.data[(outer * inner_size + inner)]; [INFO] [stdout] 427 + let grad = grad_output.data[outer * inner_size + inner]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cuda` [INFO] [stdout] --> src/bellande_artificial_intelligence_framework.rs:72:19 [INFO] [stdout] | [INFO] [stdout] 72 | #[cfg(feature = "cuda")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cudarc` [INFO] [stdout] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cuda` [INFO] [stdout] --> src/bellande_artificial_intelligence_framework.rs:78:23 [INFO] [stdout] | [INFO] [stdout] 78 | #[cfg(not(feature = "cuda"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cudarc` [INFO] [stdout] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cuda` [INFO] [stdout] --> src/bellande_artificial_intelligence_framework.rs:108:18 [INFO] [stdout] | [INFO] [stdout] 108 | cfg!(feature = "cuda"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cudarc` [INFO] [stdout] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `device_id` [INFO] [stdout] --> src/core/device.rs:80:26 [INFO] [stdout] | [INFO] [stdout] 80 | Device::CUDA(device_id) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_device_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `device_id` [INFO] [stdout] --> src/core/device.rs:102:26 [INFO] [stdout] | [INFO] [stdout] 102 | Device::CUDA(device_id) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_device_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tensor` [INFO] [stdout] --> src/data/augmentation.rs:109:21 [INFO] [stdout] | [INFO] [stdout] 109 | fn apply(&self, tensor: &Tensor) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_tensor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bit_depth` is assigned to, but never used [INFO] [stdout] --> src/data/image_folder.rs:680:17 [INFO] [stdout] | [INFO] [stdout] 680 | let mut bit_depth = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_bit_depth` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `bit_depth` is never read [INFO] [stdout] --> src/data/image_folder.rs:707:21 [INFO] [stdout] | [INFO] [stdout] 707 | bit_depth = ihdr_data[0]; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mask` [INFO] [stdout] --> src/layer/activation.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | let mask: Vec = output [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mask` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `batch_grad` [INFO] [stdout] --> src/layer/layer_norm.rs:136:21 [INFO] [stdout] | [INFO] [stdout] 136 | let batch_grad = &grad_output.data[start_idx..end_idx]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_batch_grad` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bias` [INFO] [stdout] --> src/layer/layer_norm.rs:149:56 [INFO] [stdout] | [INFO] [stdout] 149 | if let (Some(ref weight), Some(ref bias)) = (&self.weight, &self.bias) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bias` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r_gate` [INFO] [stdout] --> src/layer/recurrent.rs:223:14 [INFO] [stdout] | [INFO] [stdout] 223 | let (r_gate, z_gate, n_gate) = (&chunks[0], &chunks[1], &chunks[2]); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_r_gate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function cannot return without recursing [INFO] [stdout] --> src/models/vgg.rs:211:5 [INFO] [stdout] | [INFO] [stdout] 211 | fn forward(&mut self, input: &Tensor) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing [INFO] [stdout] 212 | self.forward(input) [INFO] [stdout] | ------------------- recursive call site [INFO] [stdout] | [INFO] [stdout] = help: a `loop` may express intention better if this is on purpose [INFO] [stdout] = note: `#[warn(unconditional_recursion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function cannot return without recursing [INFO] [stdout] --> src/models/vgg.rs:215:5 [INFO] [stdout] | [INFO] [stdout] 215 | fn backward(&mut self, grad_output: &Tensor) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing [INFO] [stdout] 216 | self.backward(grad_output) [INFO] [stdout] | -------------------------- recursive call site [INFO] [stdout] | [INFO] [stdout] = help: a `loop` may express intention better if this is on purpose [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/optim/adam.rs:148:35 [INFO] [stdout] | [INFO] [stdout] 148 | fn add_param_group(&mut self, mut group: ParameterGroup) { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/optim/rmsprop.rs:174:35 [INFO] [stdout] | [INFO] [stdout] 174 | fn add_param_group(&mut self, mut group: ParameterGroup) { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/optim/sgd.rs:149:35 [INFO] [stdout] | [INFO] [stdout] 149 | fn add_param_group(&mut self, mut group: ParameterGroup) { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `epoch` [INFO] [stdout] --> src/training/callbacks.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | epoch: usize, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_epoch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `logs` [INFO] [stdout] --> src/training/callbacks.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | logs: &HashMap, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_logs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `epoch` [INFO] [stdout] --> src/training/callbacks.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | epoch: usize, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_epoch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `logs` [INFO] [stdout] --> src/training/callbacks.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | logs: &HashMap, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_logs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `batch` [INFO] [stdout] --> src/training/callbacks.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | batch: usize, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_batch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `logs` [INFO] [stdout] --> src/training/callbacks.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | logs: &HashMap, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_logs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `batch` [INFO] [stdout] --> src/training/callbacks.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | batch: usize, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_batch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `logs` [INFO] [stdout] --> src/training/callbacks.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | logs: &HashMap, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_logs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `logs` [INFO] [stdout] --> src/training/callbacks.rs:48:34 [INFO] [stdout] | [INFO] [stdout] 48 | fn on_train_begin(&mut self, logs: &HashMap) -> Result<(), BellandeError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_logs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `logs` [INFO] [stdout] --> src/training/callbacks.rs:51:32 [INFO] [stdout] | [INFO] [stdout] 51 | fn on_train_end(&mut self, logs: &HashMap) -> Result<(), BellandeError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_logs` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling bellande_artificial_intelligence_framework v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable `best_value` is assigned to, but never used [INFO] [stdout] --> src/training/checkpoint.rs:456:21 [INFO] [stdout] | [INFO] [stdout] 456 | let mut best_value = match self.mode { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_best_value` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `best_value` is never read [INFO] [stdout] --> src/training/checkpoint.rs:465:29 [INFO] [stdout] | [INFO] [stdout] 465 | ... best_value = metadata.best_value; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/utilities/compression.rs:222:54 [INFO] [stdout] | [INFO] [stdout] 222 | fn read_bits(&mut self, reader: &mut R, mut count: u8) -> io::Result { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `needs_input_grad` is never read [INFO] [stdout] --> src/core/autograd.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct AutogradContext { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 28 | saved_tensors: Vec, [INFO] [stdout] 29 | needs_input_grad: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `degrees` is never read [INFO] [stdout] --> src/data/augmentation.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 98 | pub struct RandomRotation { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 99 | degrees: (f32, f32), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RGB` is never constructed [INFO] [stdout] --> src/data/image_decoder.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | struct RGB { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `root` is never read [INFO] [stdout] --> src/data/image_folder.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 73 | pub struct ImageFolder { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 74 | root: PathBuf, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `normalized` is never read [INFO] [stdout] --> src/layer/layer_norm.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 26 | struct LayerNormCache { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 27 | input: Tensor, [INFO] [stdout] 28 | normalized: Tensor, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `input_size` is never read [INFO] [stdout] --> src/layer/recurrent.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct LSTMCell { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 19 | input_size: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `input`, `hidden`, `cell`, and `gates` are never read [INFO] [stdout] --> src/layer/recurrent.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 28 | struct LSTMCache { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 29 | input: Tensor, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 30 | hidden: Tensor, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 31 | cell: Tensor, [INFO] [stdout] | ^^^^ [INFO] [stdout] 32 | gates: Tensor, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/layer/recurrent.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 133 | pub struct GRUCell { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 134 | input_size: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 135 | hidden_size: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 136 | weight_ih: Tensor, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 137 | weight_hh: Tensor, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 138 | bias_ih: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 139 | bias_hh: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 140 | cache: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `input`, `hidden`, and `gates` are never read [INFO] [stdout] --> src/layer/recurrent.rs:144:5 [INFO] [stdout] | [INFO] [stdout] 143 | struct GRUCache { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 144 | input: Tensor, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 145 | hidden: Tensor, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 146 | gates: Tensor, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `compute_gates`, `split_gates`, and `forward` are never used [INFO] [stdout] --> src/layer/recurrent.rs:177:8 [INFO] [stdout] | [INFO] [stdout] 149 | impl GRUCell { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 177 | fn compute_gates(&self, input: &Tensor, h_prev: &Tensor) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 193 | fn split_gates(&self, gates: &Tensor) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | fn forward(&mut self, input: &Tensor, hidden: Option) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `query`, `key`, `value`, and `attention_weights` are never read [INFO] [stdout] --> src/layer/transformer.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 33 | struct AttentionCache { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 34 | query: Tensor, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 35 | key: Tensor, [INFO] [stdout] | ^^^ [INFO] [stdout] 36 | value: Tensor, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 37 | attention_weights: Tensor, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `best_weights` is never read [INFO] [stdout] --> src/training/callbacks.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 56 | pub struct EarlyStopping { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 64 | best_weights: Option>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `decode_literal_symbol` is never used [INFO] [stdout] --> src/utilities/compression.rs:296:8 [INFO] [stdout] | [INFO] [stdout] 258 | impl Decoder { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 296 | fn decode_literal_symbol(&mut self) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/data/dataloader.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn iter(&self) -> DataLoaderIterator { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 50 | pub fn iter(&self) -> DataLoaderIterator<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `T_max` should have a snake case name [INFO] [stdout] --> src/optim/scheduler.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | T_max: usize, [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `t_max` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T_max` should have a snake case name [INFO] [stdout] --> src/optim/scheduler.rs:68:47 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn new(optimizer: Box, T_max: usize, eta_min: f32) -> Self { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `t_max` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cuda` [INFO] [stdout] --> src/core/device.rs:54:11 [INFO] [stdout] | [INFO] [stdout] 54 | #[cfg(feature = "cuda")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cudarc` [INFO] [stdout] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cuda` [INFO] [stdout] --> src/core/device.rs:62:11 [INFO] [stdout] | [INFO] [stdout] 62 | #[cfg(feature = "cuda")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cudarc` [INFO] [stdout] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cuda` [INFO] [stdout] --> src/core/device.rs:67:11 [INFO] [stdout] | [INFO] [stdout] 67 | #[cfg(feature = "cuda")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cudarc` [INFO] [stdout] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cuda` [INFO] [stdout] --> src/core/device.rs:72:11 [INFO] [stdout] | [INFO] [stdout] 72 | #[cfg(feature = "cuda")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cudarc` [INFO] [stdout] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cuda` [INFO] [stdout] --> src/core/device.rs:35:15 [INFO] [stdout] | [INFO] [stdout] 35 | #[cfg(feature = "cuda")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cudarc` [INFO] [stdout] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cuda` [INFO] [stdout] --> src/core/device.rs:42:19 [INFO] [stdout] | [INFO] [stdout] 42 | #[cfg(not(feature = "cuda"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cudarc` [INFO] [stdout] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cuda` [INFO] [stdout] --> src/core/device.rs:81:23 [INFO] [stdout] | [INFO] [stdout] 81 | #[cfg(feature = "cuda")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cudarc` [INFO] [stdout] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cuda` [INFO] [stdout] --> src/core/device.rs:86:27 [INFO] [stdout] | [INFO] [stdout] 86 | #[cfg(not(feature = "cuda"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cudarc` [INFO] [stdout] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cuda` [INFO] [stdout] --> src/core/device.rs:103:23 [INFO] [stdout] | [INFO] [stdout] 103 | #[cfg(feature = "cuda")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cudarc` [INFO] [stdout] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cuda` [INFO] [stdout] --> src/core/device.rs:108:27 [INFO] [stdout] | [INFO] [stdout] 108 | #[cfg(not(feature = "cuda"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cudarc` [INFO] [stdout] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/loss/bce.rs:349:53 [INFO] [stdout] | [INFO] [stdout] 349 | let grad = grad_output.data[(outer * inner_size + inner)]; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 349 - let grad = grad_output.data[(outer * inner_size + inner)]; [INFO] [stdout] 349 + let grad = grad_output.data[outer * inner_size + inner]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/loss/bce.rs:379:53 [INFO] [stdout] | [INFO] [stdout] 379 | let grad = grad_output.data[(outer * inner_size + inner)] / stride; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 379 - let grad = grad_output.data[(outer * inner_size + inner)] / stride; [INFO] [stdout] 379 + let grad = grad_output.data[outer * inner_size + inner] / stride; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/loss/bce.rs:427:53 [INFO] [stdout] | [INFO] [stdout] 427 | let grad = grad_output.data[(outer * inner_size + inner)]; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 427 - let grad = grad_output.data[(outer * inner_size + inner)]; [INFO] [stdout] 427 + let grad = grad_output.data[outer * inner_size + inner]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cuda` [INFO] [stdout] --> src/bellande_artificial_intelligence_framework.rs:72:19 [INFO] [stdout] | [INFO] [stdout] 72 | #[cfg(feature = "cuda")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cudarc` [INFO] [stdout] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cuda` [INFO] [stdout] --> src/bellande_artificial_intelligence_framework.rs:78:23 [INFO] [stdout] | [INFO] [stdout] 78 | #[cfg(not(feature = "cuda"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cudarc` [INFO] [stdout] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cuda` [INFO] [stdout] --> src/bellande_artificial_intelligence_framework.rs:108:18 [INFO] [stdout] | [INFO] [stdout] 108 | cfg!(feature = "cuda"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cudarc` [INFO] [stdout] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `device_id` [INFO] [stdout] --> src/core/device.rs:80:26 [INFO] [stdout] | [INFO] [stdout] 80 | Device::CUDA(device_id) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_device_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `device_id` [INFO] [stdout] --> src/core/device.rs:102:26 [INFO] [stdout] | [INFO] [stdout] 102 | Device::CUDA(device_id) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_device_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tensor` [INFO] [stdout] --> src/data/augmentation.rs:109:21 [INFO] [stdout] | [INFO] [stdout] 109 | fn apply(&self, tensor: &Tensor) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_tensor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `bit_depth` is assigned to, but never used [INFO] [stdout] --> src/data/image_folder.rs:680:17 [INFO] [stdout] | [INFO] [stdout] 680 | let mut bit_depth = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_bit_depth` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `bit_depth` is never read [INFO] [stdout] --> src/data/image_folder.rs:707:21 [INFO] [stdout] | [INFO] [stdout] 707 | bit_depth = ihdr_data[0]; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mask` [INFO] [stdout] --> src/layer/activation.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | let mask: Vec = output [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mask` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `batch_grad` [INFO] [stdout] --> src/layer/layer_norm.rs:136:21 [INFO] [stdout] | [INFO] [stdout] 136 | let batch_grad = &grad_output.data[start_idx..end_idx]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_batch_grad` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bias` [INFO] [stdout] --> src/layer/layer_norm.rs:149:56 [INFO] [stdout] | [INFO] [stdout] 149 | if let (Some(ref weight), Some(ref bias)) = (&self.weight, &self.bias) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bias` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r_gate` [INFO] [stdout] --> src/layer/recurrent.rs:223:14 [INFO] [stdout] | [INFO] [stdout] 223 | let (r_gate, z_gate, n_gate) = (&chunks[0], &chunks[1], &chunks[2]); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_r_gate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function cannot return without recursing [INFO] [stdout] --> src/models/vgg.rs:211:5 [INFO] [stdout] | [INFO] [stdout] 211 | fn forward(&mut self, input: &Tensor) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing [INFO] [stdout] 212 | self.forward(input) [INFO] [stdout] | ------------------- recursive call site [INFO] [stdout] | [INFO] [stdout] = help: a `loop` may express intention better if this is on purpose [INFO] [stdout] = note: `#[warn(unconditional_recursion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function cannot return without recursing [INFO] [stdout] --> src/models/vgg.rs:215:5 [INFO] [stdout] | [INFO] [stdout] 215 | fn backward(&mut self, grad_output: &Tensor) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing [INFO] [stdout] 216 | self.backward(grad_output) [INFO] [stdout] | -------------------------- recursive call site [INFO] [stdout] | [INFO] [stdout] = help: a `loop` may express intention better if this is on purpose [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/optim/adam.rs:148:35 [INFO] [stdout] | [INFO] [stdout] 148 | fn add_param_group(&mut self, mut group: ParameterGroup) { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/optim/rmsprop.rs:174:35 [INFO] [stdout] | [INFO] [stdout] 174 | fn add_param_group(&mut self, mut group: ParameterGroup) { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/optim/sgd.rs:149:35 [INFO] [stdout] | [INFO] [stdout] 149 | fn add_param_group(&mut self, mut group: ParameterGroup) { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `epoch` [INFO] [stdout] --> src/training/callbacks.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | epoch: usize, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_epoch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `logs` [INFO] [stdout] --> src/training/callbacks.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | logs: &HashMap, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_logs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `epoch` [INFO] [stdout] --> src/training/callbacks.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | epoch: usize, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_epoch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `logs` [INFO] [stdout] --> src/training/callbacks.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | logs: &HashMap, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_logs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `batch` [INFO] [stdout] --> src/training/callbacks.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | batch: usize, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_batch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `logs` [INFO] [stdout] --> src/training/callbacks.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | logs: &HashMap, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_logs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `batch` [INFO] [stdout] --> src/training/callbacks.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | batch: usize, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_batch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `logs` [INFO] [stdout] --> src/training/callbacks.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | logs: &HashMap, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_logs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `logs` [INFO] [stdout] --> src/training/callbacks.rs:48:34 [INFO] [stdout] | [INFO] [stdout] 48 | fn on_train_begin(&mut self, logs: &HashMap) -> Result<(), BellandeError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_logs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `logs` [INFO] [stdout] --> src/training/callbacks.rs:51:32 [INFO] [stdout] | [INFO] [stdout] 51 | fn on_train_end(&mut self, logs: &HashMap) -> Result<(), BellandeError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_logs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `best_value` is assigned to, but never used [INFO] [stdout] --> src/training/checkpoint.rs:456:21 [INFO] [stdout] | [INFO] [stdout] 456 | let mut best_value = match self.mode { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_best_value` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `best_value` is never read [INFO] [stdout] --> src/training/checkpoint.rs:465:29 [INFO] [stdout] | [INFO] [stdout] 465 | ... best_value = metadata.best_value; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/utilities/compression.rs:222:54 [INFO] [stdout] | [INFO] [stdout] 222 | fn read_bits(&mut self, reader: &mut R, mut count: u8) -> io::Result { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `needs_input_grad` is never read [INFO] [stdout] --> src/core/autograd.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct AutogradContext { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 28 | saved_tensors: Vec, [INFO] [stdout] 29 | needs_input_grad: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `degrees` is never read [INFO] [stdout] --> src/data/augmentation.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 98 | pub struct RandomRotation { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 99 | degrees: (f32, f32), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RGB` is never constructed [INFO] [stdout] --> src/data/image_decoder.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | struct RGB { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `root` is never read [INFO] [stdout] --> src/data/image_folder.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 73 | pub struct ImageFolder { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 74 | root: PathBuf, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `normalized` is never read [INFO] [stdout] --> src/layer/layer_norm.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 26 | struct LayerNormCache { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 27 | input: Tensor, [INFO] [stdout] 28 | normalized: Tensor, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `input_size` is never read [INFO] [stdout] --> src/layer/recurrent.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct LSTMCell { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 19 | input_size: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `input`, `hidden`, `cell`, and `gates` are never read [INFO] [stdout] --> src/layer/recurrent.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 28 | struct LSTMCache { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 29 | input: Tensor, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 30 | hidden: Tensor, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 31 | cell: Tensor, [INFO] [stdout] | ^^^^ [INFO] [stdout] 32 | gates: Tensor, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/layer/recurrent.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 133 | pub struct GRUCell { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 134 | input_size: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 135 | hidden_size: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 136 | weight_ih: Tensor, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 137 | weight_hh: Tensor, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 138 | bias_ih: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 139 | bias_hh: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 140 | cache: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `input`, `hidden`, and `gates` are never read [INFO] [stdout] --> src/layer/recurrent.rs:144:5 [INFO] [stdout] | [INFO] [stdout] 143 | struct GRUCache { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 144 | input: Tensor, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 145 | hidden: Tensor, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 146 | gates: Tensor, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `compute_gates`, `split_gates`, and `forward` are never used [INFO] [stdout] --> src/layer/recurrent.rs:177:8 [INFO] [stdout] | [INFO] [stdout] 149 | impl GRUCell { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 177 | fn compute_gates(&self, input: &Tensor, h_prev: &Tensor) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 193 | fn split_gates(&self, gates: &Tensor) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | fn forward(&mut self, input: &Tensor, hidden: Option) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `query`, `key`, `value`, and `attention_weights` are never read [INFO] [stdout] --> src/layer/transformer.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 33 | struct AttentionCache { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 34 | query: Tensor, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 35 | key: Tensor, [INFO] [stdout] | ^^^ [INFO] [stdout] 36 | value: Tensor, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 37 | attention_weights: Tensor, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `best_weights` is never read [INFO] [stdout] --> src/training/callbacks.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 56 | pub struct EarlyStopping { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 64 | best_weights: Option>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `decode_literal_symbol` is never used [INFO] [stdout] --> src/utilities/compression.rs:296:8 [INFO] [stdout] | [INFO] [stdout] 258 | impl Decoder { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 296 | fn decode_literal_symbol(&mut self) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/data/dataloader.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn iter(&self) -> DataLoaderIterator { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 50 | pub fn iter(&self) -> DataLoaderIterator<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `T_max` should have a snake case name [INFO] [stdout] --> src/optim/scheduler.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | T_max: usize, [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `t_max` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T_max` should have a snake case name [INFO] [stdout] --> src/optim/scheduler.rs:68:47 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn new(optimizer: Box, T_max: usize, eta_min: f32) -> Self { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `t_max` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.76s [INFO] running `Command { std: "docker" "inspect" "74a24d089e7e69c3df9073987b109bda4b831bac7828264be5c84e84dd9367f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "74a24d089e7e69c3df9073987b109bda4b831bac7828264be5c84e84dd9367f6", kill_on_drop: false }` [INFO] [stdout] 74a24d089e7e69c3df9073987b109bda4b831bac7828264be5c84e84dd9367f6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 8f4f5e2dc812f7410f77a7290893b4ef82ef83fb9dfb5d7e0b5880b9c2060b57 [INFO] running `Command { std: "docker" "start" "-a" "8f4f5e2dc812f7410f77a7290893b4ef82ef83fb9dfb5d7e0b5880b9c2060b57", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] [stderr] warning: unexpected `cfg` condition value: `cuda` [INFO] [stderr] --> src/core/device.rs:54:11 [INFO] [stderr] | [INFO] [stderr] 54 | #[cfg(feature = "cuda")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `cudarc` [INFO] [stderr] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `cuda` [INFO] [stderr] --> src/core/device.rs:62:11 [INFO] [stderr] | [INFO] [stderr] 62 | #[cfg(feature = "cuda")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `cudarc` [INFO] [stderr] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `cuda` [INFO] [stderr] --> src/core/device.rs:67:11 [INFO] [stderr] | [INFO] [stderr] 67 | #[cfg(feature = "cuda")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `cudarc` [INFO] [stderr] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `cuda` [INFO] [stderr] --> src/core/device.rs:72:11 [INFO] [stderr] | [INFO] [stderr] 72 | #[cfg(feature = "cuda")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `cudarc` [INFO] [stderr] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `cuda` [INFO] [stderr] --> src/core/device.rs:35:15 [INFO] [stderr] | [INFO] [stderr] 35 | #[cfg(feature = "cuda")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `cudarc` [INFO] [stderr] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `cuda` [INFO] [stderr] --> src/core/device.rs:42:19 [INFO] [stderr] | [INFO] [stderr] 42 | #[cfg(not(feature = "cuda"))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `cudarc` [INFO] [stderr] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `cuda` [INFO] [stderr] --> src/core/device.rs:81:23 [INFO] [stderr] | [INFO] [stderr] 81 | #[cfg(feature = "cuda")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `cudarc` [INFO] [stderr] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `cuda` [INFO] [stderr] --> src/core/device.rs:86:27 [INFO] [stderr] | [INFO] [stderr] 86 | #[cfg(not(feature = "cuda"))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `cudarc` [INFO] [stderr] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `cuda` [INFO] [stderr] --> src/core/device.rs:103:23 [INFO] [stderr] | [INFO] [stderr] 103 | #[cfg(feature = "cuda")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `cudarc` [INFO] [stderr] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `cuda` [INFO] [stderr] --> src/core/device.rs:108:27 [INFO] [stderr] | [INFO] [stderr] 108 | #[cfg(not(feature = "cuda"))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `cudarc` [INFO] [stderr] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around index expression [INFO] [stderr] --> src/loss/bce.rs:349:53 [INFO] [stderr] | [INFO] [stderr] 349 | let grad = grad_output.data[(outer * inner_size + inner)]; [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 349 - let grad = grad_output.data[(outer * inner_size + inner)]; [INFO] [stderr] 349 + let grad = grad_output.data[outer * inner_size + inner]; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around index expression [INFO] [stderr] --> src/loss/bce.rs:379:53 [INFO] [stderr] | [INFO] [stderr] 379 | let grad = grad_output.data[(outer * inner_size + inner)] / stride; [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 379 - let grad = grad_output.data[(outer * inner_size + inner)] / stride; [INFO] [stderr] 379 + let grad = grad_output.data[outer * inner_size + inner] / stride; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around index expression [INFO] [stderr] --> src/loss/bce.rs:427:53 [INFO] [stderr] | [INFO] [stderr] 427 | let grad = grad_output.data[(outer * inner_size + inner)]; [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 427 - let grad = grad_output.data[(outer * inner_size + inner)]; [INFO] [stderr] 427 + let grad = grad_output.data[outer * inner_size + inner]; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `cuda` [INFO] [stderr] --> src/bellande_artificial_intelligence_framework.rs:72:19 [INFO] [stderr] | [INFO] [stderr] 72 | #[cfg(feature = "cuda")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `cudarc` [INFO] [stderr] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `cuda` [INFO] [stderr] --> src/bellande_artificial_intelligence_framework.rs:78:23 [INFO] [stderr] | [INFO] [stderr] 78 | #[cfg(not(feature = "cuda"))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `cudarc` [INFO] [stderr] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `cuda` [INFO] [stderr] --> src/bellande_artificial_intelligence_framework.rs:108:18 [INFO] [stderr] | [INFO] [stderr] 108 | cfg!(feature = "cuda"), [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `cudarc` [INFO] [stderr] = help: consider adding `cuda` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unused variable: `device_id` [INFO] [stderr] --> src/core/device.rs:80:26 [INFO] [stderr] | [INFO] [stderr] 80 | Device::CUDA(device_id) => { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_device_id` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `device_id` [INFO] [stderr] --> src/core/device.rs:102:26 [INFO] [stderr] | [INFO] [stderr] 102 | Device::CUDA(device_id) => { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_device_id` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `tensor` [INFO] [stderr] --> src/data/augmentation.rs:109:21 [INFO] [stderr] | [INFO] [stderr] 109 | fn apply(&self, tensor: &Tensor) -> Result { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_tensor` [INFO] [stderr] [INFO] [stderr] warning: variable `bit_depth` is assigned to, but never used [INFO] [stderr] --> src/data/image_folder.rs:680:17 [INFO] [stderr] | [INFO] [stderr] 680 | let mut bit_depth = 0; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_bit_depth` instead [INFO] [stderr] [INFO] [stderr] warning: value assigned to `bit_depth` is never read [INFO] [stderr] --> src/data/image_folder.rs:707:21 [INFO] [stderr] | [INFO] [stderr] 707 | bit_depth = ihdr_data[0]; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `mask` [INFO] [stderr] --> src/layer/activation.rs:36:13 [INFO] [stderr] | [INFO] [stderr] 36 | let mask: Vec = output [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mask` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `batch_grad` [INFO] [stderr] --> src/layer/layer_norm.rs:136:21 [INFO] [stderr] | [INFO] [stderr] 136 | let batch_grad = &grad_output.data[start_idx..end_idx]; [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_batch_grad` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `bias` [INFO] [stderr] --> src/layer/layer_norm.rs:149:56 [INFO] [stderr] | [INFO] [stderr] 149 | if let (Some(ref weight), Some(ref bias)) = (&self.weight, &self.bias) { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bias` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `r_gate` [INFO] [stderr] --> src/layer/recurrent.rs:223:14 [INFO] [stderr] | [INFO] [stderr] 223 | let (r_gate, z_gate, n_gate) = (&chunks[0], &chunks[1], &chunks[2]); [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_r_gate` [INFO] [stderr] [INFO] [stderr] warning: function cannot return without recursing [INFO] [stderr] --> src/models/vgg.rs:211:5 [INFO] [stderr] | [INFO] [stderr] 211 | fn forward(&mut self, input: &Tensor) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing [INFO] [stderr] 212 | self.forward(input) [INFO] [stderr] | ------------------- recursive call site [INFO] [stderr] | [INFO] [stderr] = help: a `loop` may express intention better if this is on purpose [INFO] [stderr] = note: `#[warn(unconditional_recursion)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function cannot return without recursing [INFO] [stderr] --> src/models/vgg.rs:215:5 [INFO] [stderr] | [INFO] [stderr] 215 | fn backward(&mut self, grad_output: &Tensor) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing [INFO] [stderr] 216 | self.backward(grad_output) [INFO] [stderr] | -------------------------- recursive call site [INFO] [stderr] | [INFO] [stderr] = help: a `loop` may express intention better if this is on purpose [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/optim/adam.rs:148:35 [INFO] [stderr] | [INFO] [stderr] 148 | fn add_param_group(&mut self, mut group: ParameterGroup) { [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/optim/rmsprop.rs:174:35 [INFO] [stderr] | [INFO] [stderr] 174 | fn add_param_group(&mut self, mut group: ParameterGroup) { [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/optim/sgd.rs:149:35 [INFO] [stderr] | [INFO] [stderr] 149 | fn add_param_group(&mut self, mut group: ParameterGroup) { [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `epoch` [INFO] [stderr] --> src/training/callbacks.rs:22:9 [INFO] [stderr] | [INFO] [stderr] 22 | epoch: usize, [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_epoch` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `logs` [INFO] [stderr] --> src/training/callbacks.rs:23:9 [INFO] [stderr] | [INFO] [stderr] 23 | logs: &HashMap, [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_logs` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `epoch` [INFO] [stderr] --> src/training/callbacks.rs:29:9 [INFO] [stderr] | [INFO] [stderr] 29 | epoch: usize, [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_epoch` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `logs` [INFO] [stderr] --> src/training/callbacks.rs:30:9 [INFO] [stderr] | [INFO] [stderr] 30 | logs: &HashMap, [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_logs` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `batch` [INFO] [stderr] --> src/training/callbacks.rs:36:9 [INFO] [stderr] | [INFO] [stderr] 36 | batch: usize, [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_batch` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `logs` [INFO] [stderr] --> src/training/callbacks.rs:37:9 [INFO] [stderr] | [INFO] [stderr] 37 | logs: &HashMap, [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_logs` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `batch` [INFO] [stderr] --> src/training/callbacks.rs:43:9 [INFO] [stderr] | [INFO] [stderr] 43 | batch: usize, [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_batch` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `logs` [INFO] [stderr] --> src/training/callbacks.rs:44:9 [INFO] [stderr] | [INFO] [stderr] 44 | logs: &HashMap, [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_logs` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `logs` [INFO] [stderr] --> src/training/callbacks.rs:48:34 [INFO] [stderr] | [INFO] [stderr] 48 | fn on_train_begin(&mut self, logs: &HashMap) -> Result<(), BellandeError> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_logs` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `logs` [INFO] [stderr] --> src/training/callbacks.rs:51:32 [INFO] [stderr] | [INFO] [stderr] 51 | fn on_train_end(&mut self, logs: &HashMap) -> Result<(), BellandeError> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_logs` [INFO] [stderr] [INFO] [stderr] warning: variable `best_value` is assigned to, but never used [INFO] [stderr] --> src/training/checkpoint.rs:456:21 [INFO] [stderr] | [INFO] [stderr] 456 | let mut best_value = match self.mode { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_best_value` instead [INFO] [stderr] [INFO] [stderr] warning: value assigned to `best_value` is never read [INFO] [stderr] --> src/training/checkpoint.rs:465:29 [INFO] [stderr] | [INFO] [stderr] 465 | ... best_value = metadata.best_value; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/utilities/compression.rs:222:54 [INFO] [stderr] | [INFO] [stderr] 222 | fn read_bits(&mut self, reader: &mut R, mut count: u8) -> io::Result { [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: field `needs_input_grad` is never read [INFO] [stderr] --> src/core/autograd.rs:29:5 [INFO] [stderr] | [INFO] [stderr] 27 | pub struct AutogradContext { [INFO] [stderr] | --------------- field in this struct [INFO] [stderr] 28 | saved_tensors: Vec, [INFO] [stderr] 29 | needs_input_grad: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: field `degrees` is never read [INFO] [stderr] --> src/data/augmentation.rs:99:5 [INFO] [stderr] | [INFO] [stderr] 98 | pub struct RandomRotation { [INFO] [stderr] | -------------- field in this struct [INFO] [stderr] 99 | degrees: (f32, f32), [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `RGB` is never constructed [INFO] [stderr] --> src/data/image_decoder.rs:31:8 [INFO] [stderr] | [INFO] [stderr] 31 | struct RGB { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: field `root` is never read [INFO] [stderr] --> src/data/image_folder.rs:74:5 [INFO] [stderr] | [INFO] [stderr] 73 | pub struct ImageFolder { [INFO] [stderr] | ----------- field in this struct [INFO] [stderr] 74 | root: PathBuf, [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `normalized` is never read [INFO] [stderr] --> src/layer/layer_norm.rs:28:5 [INFO] [stderr] | [INFO] [stderr] 26 | struct LayerNormCache { [INFO] [stderr] | -------------- field in this struct [INFO] [stderr] 27 | input: Tensor, [INFO] [stderr] 28 | normalized: Tensor, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `input_size` is never read [INFO] [stderr] --> src/layer/recurrent.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 18 | pub struct LSTMCell { [INFO] [stderr] | -------- field in this struct [INFO] [stderr] 19 | input_size: usize, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `input`, `hidden`, `cell`, and `gates` are never read [INFO] [stderr] --> src/layer/recurrent.rs:29:5 [INFO] [stderr] | [INFO] [stderr] 28 | struct LSTMCache { [INFO] [stderr] | --------- fields in this struct [INFO] [stderr] 29 | input: Tensor, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 30 | hidden: Tensor, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 31 | cell: Tensor, [INFO] [stderr] | ^^^^ [INFO] [stderr] 32 | gates: Tensor, [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple fields are never read [INFO] [stderr] --> src/layer/recurrent.rs:134:5 [INFO] [stderr] | [INFO] [stderr] 133 | pub struct GRUCell { [INFO] [stderr] | ------- fields in this struct [INFO] [stderr] 134 | input_size: usize, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 135 | hidden_size: usize, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 136 | weight_ih: Tensor, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 137 | weight_hh: Tensor, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 138 | bias_ih: Option, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 139 | bias_hh: Option, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 140 | cache: Option, [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `input`, `hidden`, and `gates` are never read [INFO] [stderr] --> src/layer/recurrent.rs:144:5 [INFO] [stderr] | [INFO] [stderr] 143 | struct GRUCache { [INFO] [stderr] | -------- fields in this struct [INFO] [stderr] 144 | input: Tensor, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 145 | hidden: Tensor, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 146 | gates: Tensor, [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `compute_gates`, `split_gates`, and `forward` are never used [INFO] [stderr] --> src/layer/recurrent.rs:177:8 [INFO] [stderr] | [INFO] [stderr] 149 | impl GRUCell { [INFO] [stderr] | ------------ methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 177 | fn compute_gates(&self, input: &Tensor, h_prev: &Tensor) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 193 | fn split_gates(&self, gates: &Tensor) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 207 | fn forward(&mut self, input: &Tensor, hidden: Option) -> Result { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `query`, `key`, `value`, and `attention_weights` are never read [INFO] [stderr] --> src/layer/transformer.rs:34:5 [INFO] [stderr] | [INFO] [stderr] 33 | struct AttentionCache { [INFO] [stderr] | -------------- fields in this struct [INFO] [stderr] 34 | query: Tensor, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 35 | key: Tensor, [INFO] [stderr] | ^^^ [INFO] [stderr] 36 | value: Tensor, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 37 | attention_weights: Tensor, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `best_weights` is never read [INFO] [stderr] --> src/training/callbacks.rs:64:5 [INFO] [stderr] | [INFO] [stderr] 56 | pub struct EarlyStopping { [INFO] [stderr] | ------------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 64 | best_weights: Option>, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `decode_literal_symbol` is never used [INFO] [stderr] --> src/utilities/compression.rs:296:8 [INFO] [stderr] | [INFO] [stderr] 258 | impl Decoder { [INFO] [stderr] | ------------------------ method in this implementation [INFO] [stderr] ... [INFO] [stderr] 296 | fn decode_literal_symbol(&mut self) -> io::Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/data/dataloader.rs:50:17 [INFO] [stderr] | [INFO] [stderr] 50 | pub fn iter(&self) -> DataLoaderIterator { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 50 | pub fn iter(&self) -> DataLoaderIterator<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: structure field `T_max` should have a snake case name [INFO] [stderr] --> src/optim/scheduler.rs:61:5 [INFO] [stderr] | [INFO] [stderr] 61 | T_max: usize, [INFO] [stderr] | ^^^^^ help: convert the identifier to snake case: `t_max` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable `T_max` should have a snake case name [INFO] [stderr] --> src/optim/scheduler.rs:68:47 [INFO] [stderr] | [INFO] [stderr] 68 | pub fn new(optimizer: Box, T_max: usize, eta_min: f32) -> Self { [INFO] [stderr] | ^^^^^ help: convert the identifier to snake case: `t_max` [INFO] [stderr] [INFO] [stderr] warning: `bellande_artificial_intelligence_framework` (lib) generated 59 warnings (run `cargo fix --lib -p bellande_artificial_intelligence_framework` to apply 8 suggestions) [INFO] [stderr] warning: `bellande_artificial_intelligence_framework` (lib test) generated 59 warnings (59 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.13s [INFO] [stderr] Running unittests src/bellande_artificial_intelligence_framework.rs (/opt/rustwide/target/debug/deps/bellande_artificial_intelligence_framework-1614945e53fcd342) [INFO] [stderr] Doc-tests bellande_artificial_intelligence_framework [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] warning: unnecessary parentheses around index expression [INFO] [stderr] --> src/loss/bce.rs:349:53 [INFO] [stderr] | [INFO] [stderr] 349 | let grad = grad_output.data[(outer * inner_size + inner)]; [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 349 - let grad = grad_output.data[(outer * inner_size + inner)]; [INFO] [stderr] 349 + let grad = grad_output.data[outer * inner_size + inner]; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around index expression [INFO] [stderr] --> src/loss/bce.rs:379:53 [INFO] [stderr] | [INFO] [stderr] 379 | let grad = grad_output.data[(outer * inner_size + inner)] / stride; [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 379 - let grad = grad_output.data[(outer * inner_size + inner)] / stride; [INFO] [stderr] 379 + let grad = grad_output.data[outer * inner_size + inner] / stride; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around index expression [INFO] [stderr] --> src/loss/bce.rs:427:53 [INFO] [stderr] | [INFO] [stderr] 427 | let grad = grad_output.data[(outer * inner_size + inner)]; [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 427 - let grad = grad_output.data[(outer * inner_size + inner)]; [INFO] [stderr] 427 + let grad = grad_output.data[outer * inner_size + inner]; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: 3 warnings emitted [INFO] [stderr] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "8f4f5e2dc812f7410f77a7290893b4ef82ef83fb9dfb5d7e0b5880b9c2060b57", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8f4f5e2dc812f7410f77a7290893b4ef82ef83fb9dfb5d7e0b5880b9c2060b57", kill_on_drop: false }` [INFO] [stdout] 8f4f5e2dc812f7410f77a7290893b4ef82ef83fb9dfb5d7e0b5880b9c2060b57