Skip to content

Commit 6e104bb

Browse files
authored
Merge pull request #11 from swarnimarun/patch-1
fix: wrong debug assert
2 parents 9519b83 + ab00f3b commit 6e104bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tensor/raw.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ impl RawTensor<'_> {
111111
pub unsafe fn unchecked_host_ptr(&self) -> *mut c_void {
112112
debug_assert!(!self.inner.is_null());
113113
let data = mnn_sys::Tensor_host_mut(self.inner);
114-
debug_assert!(data.is_null());
114+
debug_assert!(!data.is_null());
115115
data
116116
}
117117

0 commit comments

Comments
 (0)