mirror of
https://github.com/Tencent/ncnn.git
synced 2026-10-17 04:41:47 +08:00
update pybind11 to 2.12, support numpy 2 (#5525)
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user