[INFO] fetching crate bellande_artificial_intelligence_framework 0.1.0... [INFO] building bellande_artificial_intelligence_framework-0.1.0 against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] extracting crate bellande_artificial_intelligence_framework 0.1.0 into /workspace/builds/worker-6-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-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate bellande_artificial_intelligence_framework 0.1.0 on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 123 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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "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] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded dlib v0.5.2 [INFO] [stderr] Downloaded foreign-types-shared v0.3.1 [INFO] [stderr] Downloaded semver v1.0.27 [INFO] [stderr] Downloaded quote v1.0.41 [INFO] [stderr] Downloaded unsafe-libyaml v0.2.11 [INFO] [stderr] Downloaded find-msvc-tools v0.1.2 [INFO] [stderr] Downloaded sys-info v0.9.1 [INFO] [stderr] Downloaded serde_derive v1.0.228 [INFO] [stderr] Downloaded option-ext v0.2.0 [INFO] [stderr] Downloaded libredox v0.1.10 [INFO] [stderr] Downloaded plotters-svg v0.3.7 [INFO] [stderr] Downloaded serde_yaml v0.9.34+deprecated [INFO] [stderr] Downloaded float-ord v0.3.2 [INFO] [stderr] Downloaded yeslogic-fontconfig-sys v6.0.0 [INFO] [stderr] Downloaded windows-implement v0.60.1 [INFO] [stderr] Downloaded num_cpus v1.17.0 [INFO] [stderr] Downloaded glob v0.3.3 [INFO] [stderr] Downloaded simd-adler32 v0.3.7 [INFO] [stderr] Downloaded rustc_version v0.4.1 [INFO] [stderr] Downloaded foreign-types-macros v0.2.3 [INFO] [stderr] Downloaded thiserror-impl v2.0.17 [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.104 [INFO] [stderr] Downloaded dirs v6.0.0 [INFO] [stderr] Downloaded core-text v20.1.0 [INFO] [stderr] Downloaded pathfinder_geometry v0.5.1 [INFO] [stderr] Downloaded core-graphics-types v0.1.3 [INFO] [stderr] Downloaded wasm-bindgen-backend v0.2.104 [INFO] [stderr] Downloaded thiserror v2.0.17 [INFO] [stderr] Downloaded dwrote v0.11.4 [INFO] [stderr] Downloaded fdeflate v0.3.7 [INFO] [stderr] Downloaded windows-core v0.62.1 [INFO] [stderr] Downloaded winapi-util v0.1.11 [INFO] [stderr] Downloaded hermit-abi v0.5.2 [INFO] [stderr] Downloaded plotters-bitmap v0.3.7 [INFO] [stderr] Downloaded redox_users v0.5.2 [INFO] [stderr] Downloaded windows-interface v0.59.2 [INFO] [stderr] Downloaded foreign-types v0.5.0 [INFO] [stderr] Downloaded bytemuck v1.23.2 [INFO] [stderr] Downloaded bincode v1.3.3 [INFO] [stderr] Downloaded core-graphics v0.23.2 [INFO] [stderr] Downloaded wasm-bindgen v0.2.104 [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.104 [INFO] [stderr] Downloaded libloading v0.8.9 [INFO] [stderr] Downloaded pathfinder_simd v0.5.5 [INFO] [stderr] Downloaded weezl v0.1.10 [INFO] [stderr] Downloaded js-sys v0.3.81 [INFO] [stderr] Downloaded plotters-backend v0.3.7 [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.104 [INFO] [stderr] Downloaded wio v0.2.2 [INFO] [stderr] Downloaded dirs-sys v0.5.0 [INFO] [stderr] Downloaded font-kit v0.14.3 [INFO] [stderr] Downloaded indexmap v2.11.4 [INFO] [stderr] Downloaded serde v1.0.228 [INFO] [stderr] Downloaded memchr v2.7.6 [INFO] [stderr] Downloaded rayon-core v1.13.0 [INFO] [stderr] Downloaded serde_core v1.0.228 [INFO] [stderr] Downloaded cc v1.2.39 [INFO] [stderr] Downloaded png v0.17.16 [INFO] [stderr] Downloaded cudarc v0.9.15 [INFO] [stderr] Downloaded ttf-parser v0.20.0 [INFO] [stderr] Downloaded rayon v1.11.0 [INFO] [stderr] Downloaded plotters v0.3.7 [INFO] [stderr] Downloaded web-sys v0.3.81 [INFO] [stderr] Downloaded gif v0.12.0 [INFO] [stderr] Downloaded jpeg-decoder v0.3.2 [INFO] [stderr] Downloaded libc v0.2.176 [INFO] [stderr] Downloaded windows-sys v0.61.1 [INFO] [stderr] Downloaded freetype-sys v0.20.1 [INFO] [stderr] Downloaded image v0.24.9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f740692e1b0388fed73245819210b2bd9e3da782a9f32230a9ab5f672c1067df [INFO] running `Command { std: "docker" "start" "-a" "f740692e1b0388fed73245819210b2bd9e3da782a9f32230a9ab5f672c1067df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f740692e1b0388fed73245819210b2bd9e3da782a9f32230a9ab5f672c1067df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f740692e1b0388fed73245819210b2bd9e3da782a9f32230a9ab5f672c1067df", kill_on_drop: false }` [INFO] [stdout] f740692e1b0388fed73245819210b2bd9e3da782a9f32230a9ab5f672c1067df [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e6ee008c9c45d753b0f459d8feb8023df14df333f73da3613bb78cd07ba8a628 [INFO] running `Command { std: "docker" "start" "-a" "e6ee008c9c45d753b0f459d8feb8023df14df333f73da3613bb78cd07ba8a628", 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 cfg-if v1.0.3 [INFO] [stderr] Compiling libc v0.2.176 [INFO] [stderr] Compiling find-msvc-tools v0.1.2 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling libm v0.2.15 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling semver v1.0.27 [INFO] [stderr] Compiling unicode-ident v1.0.19 [INFO] [stderr] Compiling simd-adler32 v0.3.7 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling adler2 v2.0.1 [INFO] [stderr] Compiling zerocopy v0.8.27 [INFO] [stderr] Compiling libloading v0.8.9 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling cc v1.2.39 [INFO] [stderr] Compiling fdeflate v0.3.7 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling option-ext v0.2.0 [INFO] [stderr] Compiling dlib v0.5.2 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling weezl v0.1.10 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling plotters-backend v0.3.7 [INFO] [stderr] Compiling pathfinder_simd v0.5.5 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling yeslogic-fontconfig-sys v6.0.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling jpeg-decoder v0.3.2 [INFO] [stderr] Compiling font-kit v0.14.3 [INFO] [stderr] Compiling bytemuck v1.23.2 [INFO] [stderr] Compiling png v0.17.16 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling gif v0.12.0 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling bitflags v2.9.4 [INFO] [stderr] Compiling float-ord v0.3.2 [INFO] [stderr] Compiling pathfinder_geometry v0.5.1 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling hashbrown v0.16.0 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling plotters-svg v0.3.7 [INFO] [stderr] Compiling ttf-parser v0.20.0 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling unsafe-libyaml v0.2.11 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling freetype-sys v0.20.1 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling dirs-sys v0.5.0 [INFO] [stderr] Compiling sys-info v0.9.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling dirs v6.0.0 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling num_cpus v1.17.0 [INFO] [stderr] Compiling glob v0.3.3 [INFO] [stderr] Compiling indexmap v2.11.4 [INFO] [stderr] Compiling image v0.24.9 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling rand_distr v0.4.3 [INFO] [stderr] Compiling plotters-bitmap v0.3.7 [INFO] [stderr] Compiling plotters v0.3.7 [INFO] [stderr] Compiling serde_yaml v0.9.34+deprecated [INFO] [stderr] Compiling bincode v1.3.3 [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] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 22 | _epoch: usize, [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_BITS` [INFO] [stdout] | [INFO] [stdout] 22 - epoch: usize, [INFO] [stdout] 22 + utilities::compression::MAX_BITS: usize, [INFO] [stdout] | [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] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 29 | _epoch: usize, [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_BITS` [INFO] [stdout] | [INFO] [stdout] 29 - epoch: usize, [INFO] [stdout] 29 + utilities::compression::MAX_BITS: usize, [INFO] [stdout] | [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] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 36 | _batch: usize, [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_BITS` [INFO] [stdout] | [INFO] [stdout] 36 - batch: usize, [INFO] [stdout] 36 + utilities::compression::MAX_BITS: usize, [INFO] [stdout] | [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] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 43 | _batch: usize, [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_BITS` [INFO] [stdout] | [INFO] [stdout] 43 - batch: usize, [INFO] [stdout] 43 + utilities::compression::MAX_BITS: usize, [INFO] [stdout] | [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 48.16s [INFO] running `Command { std: "docker" "inspect" "e6ee008c9c45d753b0f459d8feb8023df14df333f73da3613bb78cd07ba8a628", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e6ee008c9c45d753b0f459d8feb8023df14df333f73da3613bb78cd07ba8a628", kill_on_drop: false }` [INFO] [stdout] e6ee008c9c45d753b0f459d8feb8023df14df333f73da3613bb78cd07ba8a628 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 147c7b498e24449c6ae5f7285ef7611c27d2cdd40dfe24baa873a7cd87895225 [INFO] running `Command { std: "docker" "start" "-a" "147c7b498e24449c6ae5f7285ef7611c27d2cdd40dfe24baa873a7cd87895225", 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] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 22 | _epoch: usize, [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_BITS` [INFO] [stdout] | [INFO] [stdout] 22 - epoch: usize, [INFO] [stdout] 22 + utilities::compression::MAX_BITS: usize, [INFO] [stdout] | [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] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 29 | _epoch: usize, [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_BITS` [INFO] [stdout] | [INFO] [stdout] 29 - epoch: usize, [INFO] [stdout] 29 + utilities::compression::MAX_BITS: usize, [INFO] [stdout] | [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] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 36 | _batch: usize, [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_BITS` [INFO] [stdout] | [INFO] [stdout] 36 - batch: usize, [INFO] [stdout] 36 + utilities::compression::MAX_BITS: usize, [INFO] [stdout] | [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] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 43 | _batch: usize, [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_BITS` [INFO] [stdout] | [INFO] [stdout] 43 - batch: usize, [INFO] [stdout] 43 + utilities::compression::MAX_BITS: usize, [INFO] [stdout] | [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] [stderr] Compiling bellande_artificial_intelligence_framework v0.1.0 (/opt/rustwide/workdir) [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] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 22 | _epoch: usize, [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_BITS` [INFO] [stdout] | [INFO] [stdout] 22 - epoch: usize, [INFO] [stdout] 22 + utilities::compression::MAX_BITS: usize, [INFO] [stdout] | [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] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 29 | _epoch: usize, [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_BITS` [INFO] [stdout] | [INFO] [stdout] 29 - epoch: usize, [INFO] [stdout] 29 + utilities::compression::MAX_BITS: usize, [INFO] [stdout] | [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] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 36 | _batch: usize, [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_BITS` [INFO] [stdout] | [INFO] [stdout] 36 - batch: usize, [INFO] [stdout] 36 + utilities::compression::MAX_BITS: usize, [INFO] [stdout] | [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] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 43 | _batch: usize, [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_BITS` [INFO] [stdout] | [INFO] [stdout] 43 - batch: usize, [INFO] [stdout] 43 + utilities::compression::MAX_BITS: usize, [INFO] [stdout] | [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.57s [INFO] running `Command { std: "docker" "inspect" "147c7b498e24449c6ae5f7285ef7611c27d2cdd40dfe24baa873a7cd87895225", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "147c7b498e24449c6ae5f7285ef7611c27d2cdd40dfe24baa873a7cd87895225", kill_on_drop: false }` [INFO] [stdout] 147c7b498e24449c6ae5f7285ef7611c27d2cdd40dfe24baa873a7cd87895225