Skip to content

Commit

Permalink
Update rust/worker/src/types/embedding_record.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
HammadB committed Dec 16, 2023
1 parent 0ee82ad commit b74a7af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/worker/src/types/embedding_record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ impl_base_convert_error!(VectorConversionError, {
/// # Notes
/// This method internally uses unsafe code to convert the bytes to f32s
fn vec_to_f32(bytes: &[u8]) -> Result<&[f32], VectorConversionError> {
// Consumes a vector of bytes and returns a vector of f32s
// Transmutes a vector of bytes into vector of f32s

if bytes.len() % 4 != 0 {
return Err(VectorConversionError::InvalidByteLength);
Expand Down

0 comments on commit b74a7af

Please sign in to comment.