-
Notifications
You must be signed in to change notification settings - Fork 0
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
General performance and readability optimisation pass #16
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes need to be made
FILE* file = fopen(file_path, "rb"); | ||
|
||
// Offset into correct sector of array | ||
fread(tensors + ((file_num - 1) * TENSOR_SIZE), TENSOR_SIZE, sizeof(f32), file); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The current method for reading the input using a binary blob is causing issues with the CI tests. Please create a separate function specifically for reading the input using a binary blob. I recommend creating a corresponding target in the Makefile for this new method of reading input.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would rather change the CI, since we definitely aren't sticking with txt for long
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The CI works with any inputs located in the ./tensors
folder. To ensure compatibility with the CI, we need to decide whether to convert all files in ./tensors
to binary blobs.
Superseded by #21 |
Comments, reductions in bloat, file reading and IO optimisations