Module weight quantization #4831
Annotations
2 errors and 1 warning
[clippy] crates/burn-tch/src/ops/qtensor.rs#L27:
crates/burn-tch/src/ops/qtensor.rs#L27
error: returning the result of a `let` binding from a block
--> crates/burn-tch/src/ops/qtensor.rs:32:21
|
27 | / let tensor = TchOps::<E>::quantize::<D, i8>(
28 | | TchTensor::new(tensor.reshape(shape_tch.dims)),
29 | | &strategy,
30 | | )
31 | | .tensor;
| |____________________________- unnecessary `let` binding
32 | tensor
| ^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return
= note: `-D clippy::let-and-return` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::let_and_return)]`
help: return the expression directly
|
27 ~
28 ~ TchOps::<E>::quantize::<D, i8>(
29 + TchTensor::new(tensor.reshape(shape_tch.dims)),
30 + &strategy,
31 + )
32 + .tensor
|
|
[clippy] crates/burn-tch/src/ops/qtensor.rs#L37:
crates/burn-tch/src/ops/qtensor.rs#L37
error: returning the result of a `let` binding from a block
--> crates/burn-tch/src/ops/qtensor.rs:42:21
|
37 | / let tensor = TchOps::<E>::quantize::<D, i8>(
38 | | TchTensor::new(tensor.reshape(shape_tch.dims)),
39 | | &strategy,
40 | | )
41 | | .tensor;
| |____________________________- unnecessary `let` binding
42 | tensor
| ^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return
help: return the expression directly
|
37 ~
38 ~ TchOps::<E>::quantize::<D, i8>(
39 + TchTensor::new(tensor.reshape(shape_tch.dims)),
40 + &strategy,
41 + )
42 + .tensor
|
|
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/
|