liuliu / ccv

C-based/Cached/Core Computer Vision Library, A Modern Computer Vision Library
http://libccv.org
Other
7.07k stars 1.71k forks source link

Missing nil check for mps result output #261

Closed weiyanlin117 closed 1 year ago

weiyanlin117 commented 1 year ago

Add nil check for mps result output Add more unit test for nil outputs

Screenshot 2023-08-15 at 6 38 21 PM Screenshot 2023-08-15 at 6 38 27 PM Screenshot 2023-08-15 at 6 40 11 PM Screenshot 2023-08-15 at 11 44 45 PM

weiyanlin117 commented 1 year ago

based on comments added [18/56] [PASS] broadcasting semantics for add backward mps (a,b)
[19/56] [PASS] broadcasting semantics for add backward mps (a, nil)
[20/56] [PASS] broadcasting semantics for add backward mps (nil,b)

[47/56] [PASS] broadcasting semantics for mul backward (a,b)
[48/56] [PASS] broadcasting semantics for mul backward (a, nil)
[49/56] [PASS] broadcasting semantics for mul backward (nil,b)

Screenshot 2023-08-16 at 10 09 21 PM