Skip to content

Commit

Permalink
chore: removes unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
micheleriva committed Dec 4, 2024
1 parent 85e511c commit adff73a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/pq.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
use crate::errors::PQError;
use crate::utils::{determine_code_type, euclidean_distance, kmeans2};
use anyhow::Context;
use log::{info, trace, warn};
use ndarray::parallel::prelude::*;
use ndarray::{s, Array2, Array3, Axis};
use rand::TryRngCore;
use rayon::prelude::*;

#[derive(Debug, Clone, Copy)]
pub enum CodeType {
Expand Down
4 changes: 2 additions & 2 deletions src/utils.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::errors::PQError;
use crate::pq::CodeType;
use ndarray::parallel::prelude::*;
use ndarray::{Array1, Array2, ArrayView1, Axis};
use ndarray::{Array1, Array2, ArrayView1};
use ndarray_stats::QuantileExt;
use rand::distr::{Distribution, Uniform};
use rand::seq::SliceRandom;
Expand Down Expand Up @@ -143,7 +143,7 @@ pub fn create_random_vectors(num_vectors: usize, dimension: usize) -> Array2<f32
mod tests {
use super::*;
use ndarray::Array2;
use ndarray::{concatenate, s};
use ndarray::{concatenate, s, Axis};
use rand::Rng;

fn create_random_vectors(num_vectors: usize, dimension: usize) -> Array2<f32> {
Expand Down

0 comments on commit adff73a

Please sign in to comment.