Implement ONNX Pad Operator #4873
Annotations
1 error and 1 warning
tests (ubuntu-22.04, stable, std):
crates/burn-import/src/onnx/op_configuration.rs#L788
[clippy] reported by reviewdog 🐶
error: the loop variable `index` is used to index `pads`
--> crates/burn-import/src/onnx/op_configuration.rs:788:22
|
788 | for index in 0..pads.len() {
| ^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop
= note: `-D clippy::needless-range-loop` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_range_loop)]`
help: consider using an iterator and enumerate()
|
788 | for (index, <item>) in pads.iter().enumerate() {
| ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~
Raw Output:
crates/burn-import/src/onnx/op_configuration.rs:788:22:e:error: the loop variable `index` is used to index `pads`
--> crates/burn-import/src/onnx/op_configuration.rs:788:22
|
788 | for index in 0..pads.len() {
| ^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop
= note: `-D clippy::needless-range-loop` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_range_loop)]`
help: consider using an iterator and enumerate()
|
788 | for (index, <item>) in pads.iter().enumerate() {
| ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~
__END__
|
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/
|