You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi,
Thank you for kindly sharing this excellent code.
I find a little issue about MEM allocation about the array "spad" in the function "TestIm2FlavorConvLayer()" of "src/main.c":
(original)
float *spad = malloc(out_dim.h * out_dim.w * in_dim.c *
filt_dim.w * filt_dim.h);
I think that maybe you want write it as below:
float *spad = malloc(out_dim.h * out_dim.w * in_dim.c *
filt_dim.w * filt_dim.h * sizeof(float) );
It's maybe better to add "sizeof(float)",
thanks^ ^
--chayi
The text was updated successfully, but these errors were encountered:
hi,
Thank you for kindly sharing this excellent code.
I find a little issue about MEM allocation about the array "spad" in the function "TestIm2FlavorConvLayer()" of "src/main.c":
(original)
float *spad = malloc(out_dim.h * out_dim.w * in_dim.c *
filt_dim.w * filt_dim.h);
I think that maybe you want write it as below:
float *spad = malloc(out_dim.h * out_dim.w * in_dim.c *
filt_dim.w * filt_dim.h * sizeof(float) );
It's maybe better to add "sizeof(float)",
thanks^ ^
--chayi
The text was updated successfully, but these errors were encountered: