Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typo and why so large input buffer #40

Open
helloearth012 opened this issue Apr 26, 2019 · 1 comment
Open

typo and why so large input buffer #40

helloearth012 opened this issue Apr 26, 2019 · 1 comment

Comments

@helloearth012
Copy link

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?
@Mengjintao
Copy link
Contributor

Mengjintao commented Apr 26, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants