Burn is a next generation tensor library and Deep Learning Framework that doesn't compromise on flexibility, efficiency and portability.
1485 matches across 11 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | Cargo.toml | 221 | ### For the main burn branch. ### |
| LOW | deny.toml | 21 | # output a note when they are encountered. |
| LOW | deny.toml | 41 | # The default lint level for `default` features for external crates that are not |
| LOW | crates/burn-rl/src/transition_buffer/base.rs | 21 | /// A batch of transitions. |
| LOW | crates/burn-rl/src/transition_buffer/slice_access.rs | 1 | use burn_core::prelude::*; |
| LOW | crates/burn-tensor/src/device.rs | 21 | doc = "Wrap a device with [`.autodiff()`](Device::autodiff) to enable automatic differentiation with the device." |
| LOW | crates/burn-tensor/src/device.rs | 41 | /// let device = Device::wgpu(DeviceKind::DiscreteGpu(0)); |
| LOW | crates/burn-tensor/src/device.rs | 121 | /// Wrap a backend-specific device in a unified [`Device`]. |
| LOW | crates/burn-tensor/src/device.rs | 161 | /// shorthand is to pass a plain integer literal: |
| LOW | crates/burn-tensor/src/device.rs | 221 | Self::Specified(usize::try_from(i).expect("device index must be non-negative")) |
| LOW | crates/burn-tensor/src/device.rs | 241 | /// Virtual GPU with the given index. The index is the index of the virtual GPU in the list of |
| LOW | crates/burn-tensor/src/device.rs | 341 | Self::new(device) |
| LOW | crates/burn-tensor/src/device.rs | 361 | /// Vulkan-backed WGPU device, selected via [`DeviceKind`]. |
| LOW | crates/burn-tensor/src/device.rs | 381 | #[cfg(feature = "webgpu")] |
| LOW | crates/burn-tensor/src/device.rs | 401 | /// |
| LOW | crates/burn-tensor/src/device.rs | 441 | } |
| LOW | crates/burn-tensor/src/device.rs | 461 | } |
| LOW | crates/burn-tensor/src/device.rs | 481 | /// to this specific device. It is guaranteed that at least this device will be seeded. |
| LOW | crates/burn-tensor/src/device.rs | 521 | |
| LOW | crates/burn-tensor/src/device.rs | 541 | /// |
| LOW | crates/burn-tensor/src/device.rs | 641 | /// `DeviceType` is used to filter the available device types for [`Device::enumerate`]. |
| LOW | crates/burn-tensor/src/device.rs | 661 | #[cfg(feature = "ndarray")] |
| LOW | crates/burn-tensor/src/lib.rs | 1 | #![cfg_attr(not(feature = "std"), no_std)] |
| LOW | crates/burn-tensor/src/lib.rs | 21 | //! ``` |
| LOW | crates/burn-tensor/src/server.rs | 1 | //! Remote-execution server entry points. |
| LOW | crates/burn-tensor/src/server.rs | 21 | /// Transport used to serve remote clients. |
| LOW | crates/burn-tensor/src/bridge/kind.rs | 21 | mod sealed { |
| LOW | crates/burn-tensor/src/bridge/kind.rs | 81 | } |
| LOW | crates/burn-tensor/src/bridge/kind.rs | 141 | /// A floating-point tensor. |
| LOW | crates/burn-tensor/src/bridge/ops/base.rs | 21 | /// This is a low-level function used internally by the library to call different backend functions |
| LOW | crates/burn-tensor/src/bridge/ops/base.rs | 41 | /// # Returns |
| LOW | crates/burn-tensor/src/bridge/ops/base.rs | 61 | /// * `dtype` - The target data type. |
| LOW | crates/burn-tensor/src/bridge/ops/base.rs | 81 | /// * `shape` - The shape of the tensor. |
| LOW | crates/burn-tensor/src/bridge/ops/base.rs | 101 | /// # Arguments |
| LOW | crates/burn-tensor/src/bridge/ops/base.rs | 121 | |
| LOW | crates/burn-tensor/src/bridge/ops/base.rs | 141 | fn reshape(tensor: BridgeTensor, shape: Shape) -> BridgeTensor; |
| LOW | crates/burn-tensor/src/bridge/ops/base.rs | 161 | /// |
| LOW | crates/burn-tensor/src/bridge/ops/base.rs | 181 | /// # Arguments |
| LOW | crates/burn-tensor/src/bridge/ops/base.rs | 201 | /// |
| LOW | crates/burn-tensor/src/bridge/ops/base.rs | 221 | /// |
| LOW | crates/burn-tensor/src/bridge/ops/base.rs | 241 | /// |
| LOW | crates/burn-tensor/src/bridge/ops/base.rs | 261 | /// * `tensor` - The tensor to assign elements to. |
| LOW | crates/burn-tensor/src/bridge/ops/base.rs | 281 | /// function, which is more high-level and designed for public use. |
| LOW | crates/burn-tensor/src/bridge/ops/base.rs | 301 | /// corresponding element of the left hand side tensor if the corresponding element of the mask |
| LOW | crates/burn-tensor/src/bridge/ops/base.rs | 321 | /// * `value` - The value to fill elements with when the corresponding element of the mask is true. |
| LOW | crates/burn-tensor/src/bridge/ops/base.rs | 341 | /// # Arguments |
| LOW | crates/burn-tensor/src/bridge/ops/base.rs | 361 | |
| LOW | crates/burn-tensor/src/bridge/ops/base.rs | 401 | ) -> BridgeTensor; |
| LOW | crates/burn-tensor/src/bridge/ops/base.rs | 421 | /// |
| LOW | crates/burn-tensor/src/bridge/ops/base.rs | 441 | /// or use this function directly. |
| LOW | crates/burn-tensor/src/bridge/ops/base.rs | 461 | /// with static dispatch. It is not designed for direct usage by users, and not recommended to import |
| LOW | crates/burn-tensor/src/bridge/ops/base.rs | 481 | /// This is a low-level function used internally by the library to call different backend functions |
| LOW | crates/burn-tensor/src/bridge/ops/base.rs | 501 | /// # Remarks |
| LOW | crates/burn-tensor/src/bridge/ops/base.rs | 521 | /// |
| LOW | crates/burn-tensor/src/bridge/ops/base.rs | 541 | /// The tensor of booleans indicating whether the corresponding elements are equal. |
| LOW | crates/burn-tensor/src/bridge/ops/base.rs | 561 | /// |
| LOW | crates/burn-tensor/src/bridge/ops/base.rs | 581 | /// |
| LOW | crates/burn-tensor/src/bridge/ops/base.rs | 601 | /// * `rhs` - The right hand side scalar. |
| LOW | crates/burn-tensor/src/bridge/ops/base.rs | 621 | /// |
| LOW | crates/burn-tensor/src/bridge/ops/base.rs | 641 | /// * dim - The axis along which to test. |
| 1295 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | crates/burn-store/src/burnpack/mod.rs | 18 | //! ┌──────────────────────────────────┐ |
| MEDIUM | crates/burn-store/src/burnpack/mod.rs | 20 | //! ├──────────────────────────────────┤ |
| MEDIUM | crates/burn-store/src/burnpack/mod.rs | 24 | //! ├──────────────────────────────────┤ |
| MEDIUM | crates/burn-store/src/burnpack/mod.rs | 26 | //! ├──────────────────────────────────┤ |
| MEDIUM | crates/burn-store/src/burnpack/mod.rs | 35 | //! ├──────────────────────────────────┤ |
| MEDIUM | crates/burn-store/src/burnpack/mod.rs | 37 | //! ├──────────────────────────────────┤ |
| MEDIUM | crates/burn-store/src/burnpack/mod.rs | 40 | //! └──────────────────────────────────┘ |
| MEDIUM | examples/custom-image-dataset/src/model.rs | 13 | // ┌────────────────────┐ |
| MEDIUM | examples/custom-image-dataset/src/model.rs | 23 | // └────────────────────┘ |
| MEDIUM | .github/workflows/stale-pr.yml | 19 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/dependencies.yml | 29 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/dependencies.yml | 34 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/dependencies.yml | 39 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/dependencies.yml | 45 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/dependencies.yml | 52 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/test.yml | 72 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/test.yml | 78 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/test.yml | 81 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/test.yml | 89 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/test.yml | 92 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/test.yml | 108 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/test.yml | 114 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/test.yml | 117 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/test.yml | 140 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/test.yml | 148 | # # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/test.yml | 156 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/test.yml | 159 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/test.yml | 164 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/test.yml | 186 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/test.yml | 192 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/test.yml | 195 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/test.yml | 236 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/test.yml | 242 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/test.yml | 245 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/test.yml | 212 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/test.yml | 218 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/vulnerabilities.yml | 23 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/vulnerabilities.yml | 29 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/vulnerabilities.yml | 32 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/vulnerabilities.yml | 40 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/vulnerabilities.yml | 50 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/vulnerabilities.yml | 56 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/vulnerabilities.yml | 59 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/vulnerabilities.yml | 72 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/vulnerabilities.yml | 78 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/vulnerabilities.yml | 81 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/vulnerabilities.yml | 94 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/vulnerabilities.yml | 100 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/vulnerabilities.yml | 103 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/vulnerabilities.yml | 116 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/vulnerabilities.yml | 122 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/vulnerabilities.yml | 125 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/test-gpu.yml | 78 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/test-gpu.yml | 84 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/test-gpu.yml | 116 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/test-gpu.yml | 122 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/test-gpu.yml | 154 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/test-gpu.yml | 160 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/valgrind.yml | 26 | # -------------------------------------------------------------------------------- |
| MEDIUM | .github/workflows/valgrind.yml | 29 | # -------------------------------------------------------------------------------- |
| 1 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | …es/burn-cubecl-fusion/src/optim/reduce/optimization.rs | 282 | self.info.trace_read_fallback.resources.outputs.len() |
| CRITICAL | …ecl-fusion/src/optim/reduce_broadcasted/fuser/block.rs | 101 | self.fuser.fuser.fuser.fuser.num_multi_block_local_inputs() > 0; |
| CRITICAL | crates/burn-nn/src/modules/rnn/gru.rs | 337 | let bias = self.forward.update_gate.input_transform.bias.is_some(); |
| CRITICAL | crates/burn-nn/src/modules/rnn/lstm.rs | 358 | let bias = self.forward.input_gate.input_transform.bias.is_some(); |
| CRITICAL | crates/burn-nn/src/modules/rnn/basic.rs | 274 | let [d_input, _] = self.forward.gate.input_transform.weight.shape().dims(); |
| CRITICAL | crates/burn-nn/src/modules/rnn/basic.rs | 275 | let bias = self.forward.gate.input_transform.bias.is_some(); |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | …h-tests/tests/non_contiguous_indexes/export_weights.py | 12 | # Create a list to store the layers |
| MEDIUM | crates/burn-store/benches/download_resnet18.py | 26 | # Create a temporary directory for the model |
| MEDIUM | crates/burn-store/benches/generate_unified_models.py | 39 | # Create a model with 20 layers matching the Rust LargeModel |
| MEDIUM | crates/burn-store/benches/generate_unified_models.py | 130 | # Create the large model |
| MEDIUM | …src/pytorch/tests/reader/create_legacy_with_offsets.py | 12 | # Create a state dict with tensors that share storage |
| MEDIUM | …src/pytorch/tests/reader/create_legacy_with_offsets.py | 16 | # Create a base tensor with known pattern |
| MEDIUM | …s/burn-store/src/pytorch/tests/reader/simple_legacy.py | 9 | # Create a simple state dict |
| MEDIUM | …rn-store/src/pytorch/tests/reader/create_tar_format.py | 265 | # Create the three main entries |
| MEDIUM | crates/burn-dataset/src/source/huggingface/importer.py | 48 | # Create the database connection descriptor (sqlite) |
| MEDIUM | crates/burn-backend-tests/tests/autodiff/sign.rs | 6 | // >>> # Create a tensor with requires_grad=True |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | crates/burn-store/src/keyremapper.rs | 232 | // Step 1: Collect all paths and find all index positions |
| LOW | crates/burn-train/src/metric/vision/lpips/weights.rs | 86 | // Step 1: Load backbone ImageNet weights |
| LOW | crates/burn-train/src/metric/vision/lpips/weights.rs | 96 | // Step 2: Load LPIPS linear layer weights |
| LOW | crates/burn-train/src/metric/vision/dists/weights.rs | 60 | // Step 1: Download and load VGG16 ImageNet backbone weights |
| LOW | crates/burn-train/src/metric/vision/dists/weights.rs | 68 | // Step 2: Download DISTS alpha/beta weights |
| LOW | crates/burn-flex/src/ops/attention.rs | 509 | // Step 1: Score matmul via gemm |
| LOW | crates/burn-flex/src/ops/attention.rs | 536 | // Step 2: Apply scale/softcap/mask/bias, online softmax, rescale output |
| LOW | crates/burn-flex/src/ops/attention.rs | 609 | // Step 3: Value matmul via gemm |
| LOW | crates/burn-optim/src/optim/muon.rs | 305 | // Step 1: Transpose if tall matrix (more rows than columns) |
| LOW | crates/burn-optim/src/optim/muon.rs | 312 | // Step 2: Normalize by Frobenius norm |
| LOW | crates/burn-optim/src/optim/muon.rs | 324 | // Step 3: Newton-Schulz iteration |
| LOW | crates/burn-optim/src/optim/muon.rs | 341 | // Step 4: Restore transpose if it was a tall matrix |
| LOW | crates/burn-optim/src/optim/muon.rs | 392 | // Step 1: Apply momentum |
| LOW | crates/burn-optim/src/optim/muon.rs | 396 | // Step 2: Orthogonalize via Newton-Schulz |
| LOW | crates/burn-optim/src/optim/muon.rs | 399 | // Step 3: Adjust learning rate based on parameter shape |
| LOW | crates/burn-optim/src/optim/muon.rs | 402 | // Step 4: Apply weight decay (using ORIGINAL lr, not adjusted) |
| LOW | crates/burn-optim/src/optim/muon.rs | 411 | // Step 5: Update parameter (using ADJUSTED lr) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | crates/burn-dispatch/src/backend.rs | 34 | /// Essentially, [`Dispatch`] is the single entry point for executing tensor operations |
| MEDIUM | crates/burn/src/lib.rs | 34 | //! Burn strives to be as fast as possible on as many hardwares as possible, with robust implementations. |
| MEDIUM | crates/burn/src/lib.rs | 68 | //! the model to learn representations that are more robust to reduced precision. |
| MEDIUM | crates/burn-backend/src/backend/ops/modules/unfold.rs | 11 | /// The idea behind using convolution for unfolding is to leverage the sliding window mechanism of |
| MEDIUM | crates/burn-fusion/src/stream/execution/tests.rs | 3 | //! The primary focus is on validating the seamless interaction between these three components to |
| MEDIUM | crates/burn-nn/src/loss/lp_loss.rs | 28 | /// - `p = 1.0`: L1 loss (MAE with mean reduction) - robust to outliers |
| MEDIUM | crates/burn-nn/src/loss/lp_loss.rs | 31 | /// - `0 < p < 1`: More robust to outliers than L1 (quasi-norm) |
| MEDIUM | crates/burn-nn/src/loss/lp_loss.rs | 309 | // L0.5 quasi-norm: more robust to outliers than L1 |
| MEDIUM | crates/burn-nn/src/modules/rope_encoding.rs | 110 | // Essentially a cache of pre-computed RoPE values. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …urn-store/pytorch-tests/tests/conv1d/export_weights.py | 5 | |
| LOW | …rch-tests/tests/missing_module_field/export_weights.py | 5 | |
| LOW | …urn-store/pytorch-tests/tests/conv2d/export_weights.py | 5 | |
| LOW | …-store/pytorch-tests/tests/embedding/export_weights.py | 5 | |
| LOW | …store/pytorch-tests/tests/layer_norm/export_weights.py | 5 | |
| LOW | …re/pytorch-tests/tests/top_level_key/export_weights.py | 5 | |
| LOW | …-store/pytorch-tests/tests/key_remap/export_weights.py | 5 | |
| LOW | …pytorch-tests/tests/conv_transpose2d/export_weights.py | 5 | |
| LOW | …pytorch-tests/tests/conv_transpose1d/export_weights.py | 5 | |
| LOW | …store/pytorch-tests/tests/group_norm/export_weights.py | 5 | |
| LOW | …rn-store/pytorch-tests/tests/boolean/export_weights.py | 5 | |
| LOW | …rn-store/pytorch-tests/tests/integer/export_weights.py | 5 | |
| LOW | …h-tests/tests/non_contiguous_indexes/export_weights.py | 5 | |
| LOW | …store/pytorch-tests/tests/batch_norm/export_weights.py | 5 | |
| LOW | …urn-store/pytorch-tests/tests/buffer/export_weights.py | 5 | |
| LOW | crates/burn-store/benches/download_resnet18.py | 15 | |
| LOW | crates/burn-store/benches/generate_unified_models.py | 22 | |
| LOW | …rn-store/src/pytorch/tests/reader/create_tar_format.py | 19 | |
| LOW | crates/burn-store/src/pytorch/tests/reader/test_data.py | 11 | |
| LOW | crates/burn-store/src/pytorch/tests/reader/test_data.py | 12 | |
| LOW | …les/import-model-weights/weights/mnist_train_export.py | 6 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …rn-store/src/pytorch/tests/reader/create_tar_format.py | 80 | def create_storages_blob_manual(tensors: list) -> bytes: |
| LOW | …rn-store/src/pytorch/tests/reader/create_tar_format.py | 130 | def create_main_pickle_manual(tensors_info: list) -> bytes: |
| LOW | …rc/pytorch/tests/store/test_data/generate_enum_test.py | 50 | def generate_enum_variant_mismatch_test(): |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | examples/custom-image-dataset/src/training.rs | 99 | // NOTE: we use the CIFAR-10 test set as validation for demonstration purposes |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | crates/burn-store/benches/download_resnet18.py | 32 | # Check if already downloaded |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | crates/burn-store/benches/download_resnet18.py | 66 | except Exception as e: |