Burn is a next generation tensor library and Deep Learning Framework that doesn't compromise on flexibility, efficiency and portability.
This report summarizes scanner evidence for tracel-ai/burn, a Rust project with 16,094 GitHub stars. SynthScan examined 451,225 lines of code across 2066 source files, recording 1901 pattern matches distributed across 13 syntactic categories. The legacy adjusted pattern signal is 4.5 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 1815 finding(s).
Are imports declared and package/API names verified? 26 finding(s).
Are wrappers, guards, and repeated structures necessary? 63 finding(s).
Which changes need focused human review? 1901 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 1901 distinct pattern matches across 13 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Cargo.toml | 221 | cubecl-environment = { git = "https://github.com/tracel-ai/cubecl", default-features = false, rev = "f70376aba4dd8126df7 | COMMENT |
| LOW | deny.toml | 21 | # output a note when they are encountered. | COMMENT |
| LOW | deny.toml | 41 | # The default lint level for `default` features for external crates that are not | COMMENT |
| LOW | crates/burn-pack/src/lib.rs | 1 | #![cfg_attr(not(feature = "std"), no_std)] | COMMENT |
| LOW | crates/burn-pack/src/lib.rs | 21 | //! ``` | COMMENT |
| LOW | crates/burn-pack/src/lib.rs | 41 | //! .unwrap(); | COMMENT |
| LOW | crates/burn-pack/src/lib.rs | 61 | //! │ Header — 10 bytes ([`HEADER_SIZE`]) │ | COMMENT |
| LOW | crates/burn-pack/src/lib.rs | 81 | //! │ tensors sliced zero-copy. │ | COMMENT |
| LOW | crates/burn-pack/src/lib.rs | 101 | //! - [`MAX_CBOR_RECURSION_DEPTH`] — deepest CBOR nesting (stack-overflow guard) | COMMENT |
| LOW | crates/burn-pack/src/base.rs | 21 | pub const MAGIC_SIZE: usize = 4; | COMMENT |
| LOW | crates/burn-pack/src/base.rs | 41 | /// Industry alignment choices: | COMMENT |
| LOW | crates/burn-pack/src/base.rs | 61 | (unaligned_start.div_ceil(TENSOR_ALIGNMENT) * TENSOR_ALIGNMENT) as usize | COMMENT |
| LOW | crates/burn-pack/src/base.rs | 301 | #[derive(Debug, Clone, Serialize, Deserialize)] | COMMENT |
| LOW | crates/burn-pack/src/atomic.rs | 1 | //! Writing a file without ever leaving a partial one at its destination. | COMMENT |
| LOW | crates/burn-pack/src/atomic.rs | 21 | /// | COMMENT |
| LOW | crates/burn-pack/src/atomic.rs | 41 | /// let (scratch, _reserved) = AtomicFile::create(destination)?; | COMMENT |
| LOW | crates/burn-pack/src/atomic.rs | 61 | /// | COMMENT |
| LOW | crates/burn-pack/src/atomic.rs | 121 | ".{}-{}.tmp", | COMMENT |
| LOW | crates/burn-pack/src/atomic.rs | 141 | /// here cannot stand in for it. | COMMENT |
| LOW | crates/burn-pack/src/atomic.rs | 181 | /// the mode across restores what a truncating overwrite would have left. Ownership and | COMMENT |
| LOW | crates/burn-pack/src/atomic.rs | 201 | "cannot carry the permissions of '{}' onto the file replacing it: {e}", | COMMENT |
| LOW | crates/burn-pack/src/writer.rs | 21 | COMMENT | |
| LOW | crates/burn-pack/src/writer.rs | 41 | /// blob, each tensor's [`Placement`] in write order, and the total size of the data section. | COMMENT |
| LOW | crates/burn-pack/src/writer.rs | 101 | COMMENT | |
| LOW | crates/burn-pack/src/writer.rs | 121 | pub fn size(&self) -> Result<usize, Error> { | COMMENT |
| LOW | crates/burn-pack/src/writer.rs | 181 | /// extension. Use [`auto_extension(false)`](Self::auto_extension) to preserve the path. | COMMENT |
| LOW | crates/burn-pack/src/writer.rs | 201 | /// destination may hold the old container or the new one, and the finished scratch file may | COMMENT |
| LOW | crates/burn-pack/src/writer.rs | 241 | /// Write directly to a file, replacing its contents in place. | COMMENT |
| LOW | crates/burn-pack/src/reader.rs | 21 | COMMENT | |
| LOW | crates/burn-pack/src/tensor.rs | 1 | //! Tensor-library-agnostic tensor entry for the burnpack format. | COMMENT |
| LOW | crates/burn-pack/src/tensor.rs | 21 | COMMENT | |
| LOW | crates/burn-pack/src/tensor.rs | 41 | /// container from lengths alone and then draws the data one tensor at a time. | COMMENT |
| LOW | crates/burn-pack/src/tensor.rs | 101 | /// available up front via | COMMENT |
| LOW | crates/burn-pack/src/tensor.rs | 141 | Self { | COMMENT |
| LOW | crates/burn-pack/src/tensor.rs | 221 | /// Named `to_` rather than `bytes` because it can cost the whole tensor: a `Deferred` one | COMMENT |
| LOW | crates/burn-rl/src/lib.rs | 1 | #![warn(missing_docs)] | COMMENT |
| LOW | crates/burn-rl/src/transition_buffer/base.rs | 21 | /// A batch of transitions. | COMMENT |
| LOW | crates/burn-rl/src/transition_buffer/slice_access.rs | 1 | use burn_core::prelude::*; | COMMENT |
| LOW | crates/burn-tensor/src/shape_macros.rs | 1 | //! Shape assertion macros. Parsing and expansion live in burn-derive; these wrappers forward | COMMENT |
| LOW | crates/burn-tensor/src/shape_macros.rs | 21 | /// ``` | COMMENT |
| LOW | crates/burn-tensor/src/shape_macros.rs | 41 | /// use burn_tensor::{Tensor, assert_shape}; | COMMENT |
| LOW | crates/burn-tensor/src/shape_macros.rs | 61 | /// use burn_tensor::{Tensor, assert_shape}; | COMMENT |
| LOW | crates/burn-tensor/src/shape_macros.rs | 81 | /// ``` | COMMENT |
| LOW | crates/burn-tensor/src/shape_macros.rs | 101 | $crate::__assert_shape!($crate, $($tt)*) | COMMENT |
| LOW | crates/burn-tensor/src/shape_macros.rs | 121 | /// With debug assertions on, a mismatch panics like [`assert_shape!`](crate::assert_shape): | COMMENT |
| LOW | crates/burn-tensor/src/remote.rs | 1 | //! Reaching a remote compute server as a client. | COMMENT |
| LOW | crates/burn-tensor/src/remote.rs | 41 | /// or an [`IrohHost`] with relay or endpoint settings. | COMMENT |
| LOW | crates/burn-tensor/src/remote.rs | 121 | /// returned with the session it already has. | COMMENT |
| LOW | crates/burn-tensor/src/device.rs | 41 | /// Tensors inherit that context when created and can later change it independently. | COMMENT |
| LOW | crates/burn-tensor/src/device.rs | 61 | /// | COMMENT |
| LOW | crates/burn-tensor/src/device.rs | 81 | /// (take an integer index or a [`DeviceIndex`]), `Device::wgpu` / | COMMENT |
| LOW | crates/burn-tensor/src/device.rs | 141 | /// Compares devices based on hardware identity. | COMMENT |
| LOW | crates/burn-tensor/src/device.rs | 261 | /// adapter, an externally-created wgpu setup, or just "best available"). | COMMENT |
| LOW | crates/burn-tensor/src/device.rs | 281 | COMMENT | |
| LOW | crates/burn-tensor/src/device.rs | 301 | impl Device { | COMMENT |
| LOW | crates/burn-tensor/src/device.rs | 361 | /// Flex backend device. | COMMENT |
| LOW | crates/burn-tensor/src/device.rs | 421 | Self::new(wgpu_device( | COMMENT |
| LOW | crates/burn-tensor/src/device.rs | 461 | } | COMMENT |
| LOW | crates/burn-tensor/src/device.rs | 501 | } | COMMENT |
| LOW | crates/burn-tensor/src/device.rs | 541 | let _ = source; | COMMENT |
| 1695 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | crates/burn-pack/src/lib.rs | 60 | //! ┌──────────────────────────────────────────────────────────────┐ | COMMENT |
| MEDIUM⚡ | crates/burn-pack/src/lib.rs | 65 | //! ├──────────────────────────────────────────────────────────────┤ | COMMENT |
| MEDIUM⚡ | crates/burn-pack/src/lib.rs | 73 | //! ├──────────────────────────────────────────────────────────────┤ | COMMENT |
| MEDIUM⚡ | crates/burn-pack/src/lib.rs | 76 | //! ├──────────────────────────────────────────────────────────────┤ | COMMENT |
| MEDIUM⚡ | crates/burn-pack/src/lib.rs | 82 | //! └──────────────────────────────────────────────────────────────┘ | COMMENT |
| MEDIUM | examples/custom-image-dataset/src/model.rs | 13 | // ┌────────────────────┐ | COMMENT |
| MEDIUM | examples/custom-image-dataset/src/model.rs | 23 | // └────────────────────┘ | COMMENT |
| MEDIUM | .github/workflows/stale-pr.yml | 19 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/dependencies.yml | 29 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/dependencies.yml | 34 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/dependencies.yml | 39 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/dependencies.yml | 45 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/dependencies.yml | 52 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/test.yml | 72 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/test.yml | 78 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/test.yml | 81 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/test.yml | 89 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/test.yml | 93 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/test.yml | 109 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/test.yml | 115 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/test.yml | 118 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/test.yml | 143 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/test.yml | 152 | # # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/test.yml | 160 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/test.yml | 163 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/test.yml | 168 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/test.yml | 213 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/test.yml | 219 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/test.yml | 222 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/test.yml | 267 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/test.yml | 273 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/test.yml | 276 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/test.yml | 243 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/test.yml | 249 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/vulnerabilities.yml | 23 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/vulnerabilities.yml | 29 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/vulnerabilities.yml | 32 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/vulnerabilities.yml | 40 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/vulnerabilities.yml | 50 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/vulnerabilities.yml | 56 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/vulnerabilities.yml | 59 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/vulnerabilities.yml | 72 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/vulnerabilities.yml | 78 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/vulnerabilities.yml | 81 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/vulnerabilities.yml | 94 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/vulnerabilities.yml | 100 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/vulnerabilities.yml | 103 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/vulnerabilities.yml | 116 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/vulnerabilities.yml | 122 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/vulnerabilities.yml | 125 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/test-gpu.yml | 79 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/test-gpu.yml | 85 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/test-gpu.yml | 118 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/test-gpu.yml | 124 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/test-gpu.yml | 157 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/test-gpu.yml | 163 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/valgrind.yml | 26 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/valgrind.yml | 29 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .github/workflows/valgrind.yml | 33 | # -------------------------------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …es/burn-cubecl-fusion/src/optim/reduce/optimization.rs | 292 | self.info.trace_read_fallback.resources.outputs.len() | CODE |
| CRITICAL | …ecl-fusion/src/optim/reduce_broadcasted/fuser/block.rs | 99 | self.fuser.fuser.fuser.fuser.num_multi_block_local_inputs() > 0; | CODE |
| CRITICAL | crates/burn-nn/src/modules/rnn/gru.rs | 337 | let bias = self.forward.update_gate.input_transform.bias.is_some(); | CODE |
| CRITICAL | crates/burn-nn/src/modules/rnn/basic.rs | 275 | let [d_input, _] = self.forward.gate.input_transform.weight.shape().dims(); | CODE |
| CRITICAL | crates/burn-nn/src/modules/rnn/basic.rs | 276 | let bias = self.forward.gate.input_transform.bias.is_some(); | CODE |
| CRITICAL | crates/burn-nn/src/modules/rnn/lstm/bilstm_module.rs | 79 | let bias = self.forward.input_gate.input_transform.bias.is_some(); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/burn-store/src/keyremapper.rs | 250 | // Step 1: Collect all paths and find all index positions | COMMENT |
| LOW⚡ | crates/burn-train/src/metric/vision/lpips/weights.rs | 86 | // Step 1: Load backbone ImageNet weights | COMMENT |
| LOW⚡ | crates/burn-train/src/metric/vision/lpips/weights.rs | 96 | // Step 2: Load LPIPS linear layer weights | COMMENT |
| LOW⚡ | crates/burn-train/src/metric/vision/dists/weights.rs | 60 | // Step 1: Download and load VGG16 ImageNet backbone weights | COMMENT |
| LOW⚡ | crates/burn-train/src/metric/vision/dists/weights.rs | 68 | // Step 2: Download DISTS alpha/beta weights | COMMENT |
| LOW | crates/burn-flex/src/ops/attention.rs | 573 | // Step 1: Score matmul via gemm | COMMENT |
| LOW | crates/burn-flex/src/ops/attention.rs | 600 | // Step 2: Apply scale/softcap/mask/bias, online softmax, rescale output | COMMENT |
| LOW | crates/burn-flex/src/ops/attention.rs | 673 | // Step 3: Value matmul via gemm | COMMENT |
| LOW⚡ | crates/burn-optim/src/optim/muon.rs | 310 | // Step 1: Transpose if tall matrix (more rows than columns) | COMMENT |
| LOW⚡ | crates/burn-optim/src/optim/muon.rs | 317 | // Step 2: Normalize by Frobenius norm | COMMENT |
| LOW⚡ | crates/burn-optim/src/optim/muon.rs | 397 | // Step 1: Apply momentum | COMMENT |
| LOW⚡ | crates/burn-optim/src/optim/muon.rs | 401 | // Step 2: Orthogonalize via Newton-Schulz | COMMENT |
| LOW⚡ | crates/burn-optim/src/optim/muon.rs | 404 | // Step 3: Adjust learning rate based on parameter shape | COMMENT |
| LOW⚡ | crates/burn-optim/src/optim/muon.rs | 407 | // Step 4: Apply weight decay (using ORIGINAL lr, not adjusted) | COMMENT |
| LOW⚡ | crates/burn-optim/src/optim/muon.rs | 416 | // Step 5: Update parameter (using ADJUSTED lr) | COMMENT |
| LOW | crates/burn-optim/src/optim/muon.rs | 329 | // Step 3: Newton-Schulz iteration | COMMENT |
| LOW | crates/burn-optim/src/optim/muon.rs | 346 | // Step 4: Restore transpose if it was a tall matrix | COMMENT |
| LOW | burn-book/src/onnx-import.md | 67 | ### Step 1: Update `Cargo.toml` | COMMENT |
| LOW | burn-book/src/onnx-import.md | 83 | ### Step 2: Update `build.rs` | COMMENT |
| LOW | burn-book/src/onnx-import.md | 101 | ### Step 3: Modify `mod.rs` | COMMENT |
| LOW | burn-book/src/onnx-import.md | 112 | ### Step 4: Use the Imported Model | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/burn-store/src/keyremapper.rs | 250 | // Step 1: Collect all paths and find all index positions | COMMENT |
| LOW⚡ | crates/burn-train/src/metric/vision/lpips/weights.rs | 86 | // Step 1: Load backbone ImageNet weights | COMMENT |
| LOW⚡ | crates/burn-train/src/metric/vision/lpips/weights.rs | 96 | // Step 2: Load LPIPS linear layer weights | COMMENT |
| LOW⚡ | crates/burn-train/src/metric/vision/dists/weights.rs | 60 | // Step 1: Download and load VGG16 ImageNet backbone weights | COMMENT |
| LOW⚡ | crates/burn-train/src/metric/vision/dists/weights.rs | 68 | // Step 2: Download DISTS alpha/beta weights | COMMENT |
| LOW | crates/burn-flex/src/ops/attention.rs | 573 | // Step 1: Score matmul via gemm | COMMENT |
| LOW | crates/burn-flex/src/ops/attention.rs | 600 | // Step 2: Apply scale/softcap/mask/bias, online softmax, rescale output | COMMENT |
| LOW | crates/burn-flex/src/ops/attention.rs | 673 | // Step 3: Value matmul via gemm | COMMENT |
| LOW⚡ | crates/burn-optim/src/optim/muon.rs | 310 | // Step 1: Transpose if tall matrix (more rows than columns) | COMMENT |
| LOW⚡ | crates/burn-optim/src/optim/muon.rs | 317 | // Step 2: Normalize by Frobenius norm | COMMENT |
| LOW⚡ | crates/burn-optim/src/optim/muon.rs | 397 | // Step 1: Apply momentum | COMMENT |
| LOW⚡ | crates/burn-optim/src/optim/muon.rs | 401 | // Step 2: Orthogonalize via Newton-Schulz | COMMENT |
| LOW⚡ | crates/burn-optim/src/optim/muon.rs | 404 | // Step 3: Adjust learning rate based on parameter shape | COMMENT |
| LOW⚡ | crates/burn-optim/src/optim/muon.rs | 407 | // Step 4: Apply weight decay (using ORIGINAL lr, not adjusted) | COMMENT |
| LOW⚡ | crates/burn-optim/src/optim/muon.rs | 416 | // Step 5: Update parameter (using ADJUSTED lr) | COMMENT |
| LOW | crates/burn-optim/src/optim/muon.rs | 329 | // Step 3: Newton-Schulz iteration | COMMENT |
| LOW | crates/burn-optim/src/optim/muon.rs | 346 | // Step 4: Restore transpose if it was a tall matrix | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …h-tests/tests/non_contiguous_indexes/export_weights.py | 12 | # Create a list to store the layers | COMMENT |
| MEDIUM | crates/burn-store/benches/download_resnet18.py | 26 | # Create a temporary directory for the model | COMMENT |
| MEDIUM | crates/burn-store/benches/generate_unified_models.py | 39 | # Create a model with 20 layers matching the Rust LargeModel | COMMENT |
| MEDIUM | crates/burn-store/benches/generate_unified_models.py | 130 | # Create the large model | COMMENT |
| MEDIUM | crates/burn-dataset/src/source/huggingface/importer.py | 48 | # Create the database connection descriptor (sqlite) | COMMENT |
| MEDIUM | …pytorch-reader/src/tests/create_legacy_with_offsets.py | 12 | # Create a state dict with tensors that share storage | COMMENT |
| MEDIUM | …pytorch-reader/src/tests/create_legacy_with_offsets.py | 16 | # Create a base tensor with known pattern | COMMENT |
| MEDIUM | crates/pytorch-reader/src/tests/simple_legacy.py | 9 | # Create a simple state dict | COMMENT |
| MEDIUM | crates/burn-backend-tests/tests/autodiff/sign.rs | 6 | // >>> # Create a tensor with requires_grad=True | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | crates/burn-dispatch/src/backend.rs | 137 | /// Essentially, [`Dispatch`] is the single entry point for executing tensor operations | COMMENT |
| MEDIUM | crates/burn-backend/src/backend/ops/modules/unfold.rs | 12 | /// The idea behind using convolution for unfolding is to leverage the sliding window mechanism of | COMMENT |
| MEDIUM | crates/burn-fusion/src/stream/multi/tests.rs | 1186 | #[ignore = "timing harness; run explicitly"] | COMMENT |
| MEDIUM | crates/burn-fusion/src/stream/execution/tests.rs | 3 | //! The primary focus is on validating the seamless interaction between these three components to | COMMENT |
| MEDIUM | crates/burn-nn/src/loss/lp_loss.rs | 28 | /// - `p = 1.0`: L1 loss (MAE with mean reduction) - robust to outliers | COMMENT |
| MEDIUM | crates/burn-nn/src/loss/lp_loss.rs | 31 | /// - `0 < p < 1`: More robust to outliers than L1 (quasi-norm) | COMMENT |
| MEDIUM | crates/burn-nn/src/loss/lp_loss.rs | 304 | // L0.5 quasi-norm: more robust to outliers than L1 | COMMENT |
| MEDIUM | crates/burn-nn/src/modules/rope_encoding.rs | 110 | // Essentially a cache of pre-computed RoPE values. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …urn-store/pytorch-tests/tests/conv1d/export_weights.py | 5 | CODE | |
| LOW | …rch-tests/tests/missing_module_field/export_weights.py | 5 | CODE | |
| LOW | …urn-store/pytorch-tests/tests/conv2d/export_weights.py | 5 | CODE | |
| LOW | …-store/pytorch-tests/tests/embedding/export_weights.py | 5 | CODE | |
| LOW | …store/pytorch-tests/tests/layer_norm/export_weights.py | 5 | CODE | |
| LOW | …re/pytorch-tests/tests/top_level_key/export_weights.py | 5 | CODE | |
| LOW | …-store/pytorch-tests/tests/key_remap/export_weights.py | 5 | CODE | |
| LOW | …pytorch-tests/tests/conv_transpose2d/export_weights.py | 5 | CODE | |
| LOW | …pytorch-tests/tests/conv_transpose1d/export_weights.py | 5 | CODE | |
| LOW | …store/pytorch-tests/tests/group_norm/export_weights.py | 5 | CODE | |
| LOW | …rn-store/pytorch-tests/tests/boolean/export_weights.py | 5 | CODE | |
| LOW | …rn-store/pytorch-tests/tests/integer/export_weights.py | 5 | CODE | |
| LOW | …h-tests/tests/non_contiguous_indexes/export_weights.py | 5 | CODE | |
| LOW | …store/pytorch-tests/tests/batch_norm/export_weights.py | 5 | CODE | |
| LOW | …urn-store/pytorch-tests/tests/buffer/export_weights.py | 5 | CODE | |
| LOW | crates/burn-store/benches/download_resnet18.py | 15 | CODE | |
| LOW | crates/burn-store/benches/generate_unified_models.py | 22 | CODE | |
| LOW | crates/pytorch-reader/src/tests/test_data.py | 11 | CODE | |
| LOW | crates/pytorch-reader/src/tests/test_data.py | 12 | CODE | |
| LOW | …les/import-model-weights/weights/mnist_train_export.py | 6 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | examples/custom-image-dataset/src/training.rs | 97 | // NOTE: we use the CIFAR-10 test set as validation for demonstration purposes | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …rc/pytorch/tests/store/test_data/generate_enum_test.py | 50 | def generate_enum_variant_mismatch_test(): | CODE |
| LOW | crates/pytorch-reader/src/tests/create_tar_format.py | 50 | def pickle_tuple_with_torch_class(items, class_name): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/burn-store/benches/download_resnet18.py | 32 | # Check if already downloaded | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/burn-store/benches/download_resnet18.py | 66 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …les/import-model-weights/weights/mnist_train_export.py | 44 | CODE |