-
Notifications
You must be signed in to change notification settings - Fork 33
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
mnist_reader_less.hpp: template argument deduction fails #9
Comments
Hi, Indeed, there is a big bug. This should be fixed with the last commit. Do you have any reason to use mnist_reader_less.hpp? This file has fewer features than mnist_reader.hpp and has almost never been tested, as shown by your issue. It was made to compile on old compilers. If you are using Linux and a recent compiler, you should probably use mnist_reader.hpp, it has been tested many times. Cheers |
this is an amazing speed of support, many thanks! 💯 I'll test with the new changes.
I'm aware of that, we have a multiplatform framework, so Windows is a part of the mix. I read somewhere in your docs that for Win, the _less.hpp should be used (?) We're using MSVC 2017, so it'd be fine if the "full" reader could be used.
I was going to suggest, if your _less API couldn't pull a (compatible) sub-set of features from the "full" API, thus you avoid code duplication and all gets tested. |
You are welcome :)
I honestly do not know if MSVC 2017 can handle the full version. I would indeed advise you to keep with the less version.
Part of the API is common (mnist_reader_common) and contains the MNIST stuff. So the MNIST parsing has been tested! Only the front-facing API has not been tested enough, I have only used it in one project on Windows. If you find any issue, I should be able to help you with it. |
Tested the latest change and it fixes the issue, many thanks!
There's one more thing, _less does not provide read_dataset(string path), only the () version. Could you add the path argument, please?
|
Hi,
we're trying to use your code in our MNIST test, this is a great idea for a repo, btw! Thanks for doing that.
... and the compilation fails with errors in mnist_reader_less.hpp:
This is on g++8, Ubuntu 18.04, -Werror, -Wall
You can see the code and build settings at htm-community/htm.core#242
Thanks for any help resolving the errors.
The text was updated successfully, but these errors were encountered: