Closed rouson closed 2 years ago
Thanks! This is due to the relative path being hardcoded in src/mod_io.f90, which assumes that the tests are run from build/, which was true for the CMake build but doesn't work for fpm. In the short-term, you can either:
fpm test
; orfpm test
.In the long-term, a solution could be to allow specifying a path to the data as an actual argument to load_mnist
, with the default being some common place where nf data will be placed, like what TensorFlow+Keras does.
Any ideas and suggestions are welcome, of course.
I received a small grant from NASA to implement CNNs and HDF5 I/O in nf and plan to address the data path issues as part of that effort.
@milancurcic any of the above approaches is fine to me. If you have a preference, I'll submit a pull request with the change.