Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ jobs:
with:
toolchain: ${{ matrix.rust }}
targets: ${{ matrix.target }}
# rust-toolchain.toml pins 1.94.1 — install the cross-compile target
# for that toolchain too, since dtolnay/rust-toolchain only installs
# for the matrix value which may differ from the pinned version.
- run: rustup target add ${{ matrix.target }}
- name: Tests
run: |
cargo rustc "--target=${{ matrix.target }}" --no-default-features --features portable-atomic-critical-section
Expand Down
2 changes: 1 addition & 1 deletion src/hpc/crystal_encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ fn distillation_loss(student: &mut Node, teacher: &mut Node, lambda: f32) -> f32
/// # Example
///
/// ```
/// use ndarray::hpc::crystal_encoder::{CrystalEncoder, Role, distill};
/// use ndarray::hpc::crystal_encoder::{CrystalEncoder, distill};
/// use ndarray::hpc::node::Node;
///
/// let teacher = Node::random(42);
Expand Down
2 changes: 1 addition & 1 deletion src/hpc/nibble.rs
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ pub(crate) unsafe fn nibble_above_threshold_avx2(packed: &[u8], threshold: u8) -
/// # Examples
///
/// ```
/// use ndarray::hpc::nibble::{nibble_pack, nibble_propagate_bfs, nibble_unpack};
/// use ndarray::hpc::nibble::{nibble_pack, nibble_propagate_bfs};
/// let mut packed = nibble_pack(&[5, 3, 10, 1, 0, 15, 2, 7]);
/// let frontier = nibble_propagate_bfs(&mut packed, 3);
/// // After subtracting 3: [2, 0, 7, 0, 0, 12, 0, 4]
Expand Down
4 changes: 2 additions & 2 deletions src/hpc/udf_kernels.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ pub fn udf_nars_revision(freq1: u16, conf1: u16, freq2: u16, conf2: u16) -> (u16
/// ```
/// use ndarray::hpc::udf_kernels::udf_sigma_classify;
///
/// assert_eq!(udf_sigma_classify(1000, 100), "exact");
/// assert_eq!(udf_sigma_classify(1000, 1500), "noise");
/// assert_eq!(udf_sigma_classify(100, 1000), "exact");
/// assert_eq!(udf_sigma_classify(1500, 1000), "noise");
/// ```
pub fn udf_sigma_classify(band: u32, threshold: u64) -> &'static str {
use super::cascade::Band;
Expand Down
Loading