Module weight quantization #4839
Annotations
2 errors and 1 warning
[clippy] crates/burn-core/src/quantization/calibration.rs#L57:
crates/burn-core/src/quantization/calibration.rs#L57
error: float has excessive precision
--> crates/burn-core/src/quantization/calibration.rs:57:33
|
57 | assert_eq!(q.scale, 0.009019607843137253);
| ^^^^^^^^^^^^^^^^^^^^ help: consider changing the type or truncating it to: `0.009_019_608`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#excessive_precision
= note: `-D clippy::excessive-precision` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::excessive_precision)]`
|
[clippy] crates/burn-core/src/quantization/calibration.rs#L75:
crates/burn-core/src/quantization/calibration.rs#L75
error: float has excessive precision
--> crates/burn-core/src/quantization/calibration.rs:75:33
|
75 | assert_eq!(q.scale, 0.014173228346456693);
| ^^^^^^^^^^^^^^^^^^^^ help: consider changing the type or truncating it to: `0.014_173_228`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#excessive_precision
|
tests (ubuntu-22.04, stable, std)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: giraffate/clippy-action@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|