Skip to content

Commit

Permalink
clips
Browse files Browse the repository at this point in the history
  • Loading branch information
kali committed Nov 19, 2024
1 parent 9b68101 commit 585fa07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nnef/src/tensors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ pub fn write_tensor(w: &mut impl Write, tensor: &Tensor) -> TractResult<()> {
w.write_all(tensor.as_bytes())?;
} else if tensor.datum_type() == DatumType::String {
for s in tensor.as_slice::<String>()? {
w.write_u32::<LE>(s.as_bytes().len() as u32)?;
w.write_u32::<LE>(s.len() as u32)?;
w.write_all(s.as_bytes())?;
}
}
Expand Down

0 comments on commit 585fa07

Please sign in to comment.