FeatherCNN icon indicating copy to clipboard operation
FeatherCNN copied to clipboard

typo and why so large input buffer

Open helloearth012 opened this issue 7 years ago • 1 comments

Below two lines are in feather/test_txt.cpp

size_t input_size = 224 * 2224 * 3 ;
float *input = new float[input_size * 20];
  1. typo 2224->224?
  2. why do you allocate 20 times of input size, seems like each time only use float[input_size], is there a reason for 20 times buffer?

helloearth012 avatar Apr 26 '19 01:04 helloearth012

Input_size should be 224 * 224 * 3, it has been fixed.

The test program can take several lines of 224 * 224 * 3 floats as its input, here we set it to be 20. You can modify it as you want.

Mengjintao avatar Apr 26 '19 02:04 Mengjintao