Open
Description
Description
I'm working on a project which stores several large arrays in consts. Running cargo clippy
shows errors of this kind:
error: maximum number of nodes exceeded in constant params::ENC_EMB_GRU_GRU_WEIGHT_HH_L0
--> /path/to/project/target/debug/build/<hash>/out/model_parameters.rs:192:1
|
192 | pub const ENC_EMB_GRU_GRU_WEIGHT_HH_L0: Tensor<f32> = Tensor::from_slice_const([768, 256], ENC_EMB_GRU_GRU_WEIGHT_HH_L0_DATA);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The project builds fine, the problem is with clippy. I assume there must be a way to #[allow]
this error, but the error output does not suggest anything. It'd be nice if it did.
Version
rustc 1.87.0 (17067e9ac 2025-05-09)
binary: rustc
commit-hash: 17067e9ac6d7ecb70e50f92c1944e545188d2359
commit-date: 2025-05-09
host: x86_64-unknown-linux-gnu
release: 1.87.0
LLVM version: 20.1.1
Additional Labels
No response
Metadata
Metadata
Assignees
Labels
No labels