Skip to content

Commit

Permalink
Adding some type checks.
Browse files Browse the repository at this point in the history
  • Loading branch information
codetalker7 committed Aug 15, 2024
1 parent 78dc814 commit 23cc67b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/indexing/codecs/residual.jl
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ function load_codec(index_path::String)
bucket_cutoffs = JLD2.load_object(bucket_cutoffs_path)
bucket_weights = JLD2.load_object(bucket_weights_path)

@assert centroids isa Matrix{Float32}
@assert avg_residual isa Float32
@assert bucket_cutoffs isa Vector{Float32}
@assert bucket_weights isa Vector{Float32}

Dict(
"centroids" => centroids,
"avg_residual" => avg_residual,
Expand Down

0 comments on commit 23cc67b

Please sign in to comment.