update pybind11 to 2.12, support numpy 2 (#5525)

This commit is contained in:
nihui
2024-06-21 08:41:40 +08:00
committed by GitHub
parent f56b18aaf0
commit f2a34ee7ae
3 changed files with 11 additions and 2 deletions
+1 -1
View File
@@ -298,7 +298,7 @@ def test_fill():
mat = ncnn.Mat(1)
mat.fill(1.0)
array = np.array(mat)
assert np.abs(array[0] - 1.0) < sys.float_info.min
assert np.abs(array[0] - 1.0) < np.finfo(np.float32).eps
def test_clone():