liuliu / ccv

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

CONV backward #248

Closed weiyanlin117 closed 1 year ago

weiyanlin117 commented 1 year ago

test passed only support weights gradient and output gradient, on bias gradient yet, Since I notice pytorch doesn't implement bias gradient, I treat bias gradient as optional? I can spend time if it is needed.

Screenshot 2023-07-26 at 11 54 48 PM

liuliu commented 1 year ago

Have you tried NHWC layout (with weights potentially in NCHW layout)?

weiyanlin117 commented 1 year ago

Screenshot 2023-07-27 at 5 23 18 PM

weiyanlin117 commented 1 year ago

NCHW works as same as previous Screenshot 2023-07-27 at 5 24 19 PM

liuliu commented 1 year ago

Probably need a regen.

weiyanlin117 commented 1 year ago

Screenshot 2023-07-28 at 11 27 57 AM

weiyanlin117 commented 1 year ago

normal test passed. commented out dbias test passed.