Skip to content

Commit

Permalink
Indenting a comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
codetalker7 committed Jun 18, 2024
1 parent e1b2036 commit 3d05025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/indexing/codecs/residual.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function binarize(codec::ResidualCodec, residuals::Matrix{Float64})
bucket_indices = Int.(floor.(bucket_indices ./ positionbits)) # divide by 2^bit for each bit position
bucket_indices = bucket_indices .& 1 # apply mod 1 to binarize
residuals_packed = reinterpret(UInt8, BitArray(vec(bucket_indices)).chunks) # flatten out the bits, and pack them into UInt8
residuals_packed = reshape(residuals_packed, (Int(dim / 8) * nbits, num_embeddings))# reshape back to get compressions for each embedding
residuals_packed = reshape(residuals_packed, (Int(dim / 8) * nbits, num_embeddings)) # reshape back to get compressions for each embedding
end

# function compress(codec::ResidualCodec, embs::Matrix{Float64})
Expand Down

0 comments on commit 3d05025

Please sign in to comment.