diff --git a/candle-core/src/safetensors.rs b/candle-core/src/safetensors.rs index ae93f4df..d7343e44 100644 --- a/candle-core/src/safetensors.rs +++ b/candle-core/src/safetensors.rs @@ -71,7 +71,7 @@ fn convert_(view: st::TensorView<'_>, device: &Device) -> Result = Vec::with_capacity(elem_count); // SAFETY: We just created c, so the allocated memory is necessarily // contiguous and non overlapping with the view's data. // We're downgrading the `c` pointer from T to u8, which removes alignment