Skip to content

Commit

Permalink
fix: wrong debug assert
Browse files Browse the repository at this point in the history
  • Loading branch information
swarnimarun authored Jan 26, 2025
1 parent 9519b83 commit ab00f3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tensor/raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ impl RawTensor<'_> {
pub unsafe fn unchecked_host_ptr(&self) -> *mut c_void {
debug_assert!(!self.inner.is_null());
let data = mnn_sys::Tensor_host_mut(self.inner);
debug_assert!(data.is_null());
debug_assert!(!data.is_null());
data
}

Expand Down

0 comments on commit ab00f3b

Please sign in to comment.