-
Notifications
You must be signed in to change notification settings - Fork 86
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
Implement dropout layer #170
Comments
Hello, i'd like to work on this |
Hi @ricor07, that'd be fantastic, thank you!
Let me know if you have any questions. If you'd like, we could also meet on video to discuss this after January 6. |
Thank you for your kindness. I'll start to work. |
@milancurcic Sorry for disturbing you, but i can't compile the repo. I downloaded fpm and gfortran, i included them in the path as well. After running fpm build --profile release, this is what I get: `PS C:\Users\angel\neural-fortran> fpm build --profile release
Could you help me fixing this issue? |
Not clear to me yet why this happens. May be Windows-specific. What version of gfortran is this? |
14.2.0. I think it is the last one |
OK, I just built and tested Just to be sure, can you try removing the If the issue still appears the same way, let's try building with CMake. |
Yes, already done, the issue persists. PS C:\Users\angel\neural-fortran\build> cd nf
is not able to compile a simple test program. It fails with the following output:
CMake will not be able to correctly generate this project. Don't mind the nf in the first line, the output is the same even without it |
OK, cool, thanks. I think this points toward the mingw or its gfortran distribution, or how they're configured. I'm not familiar with compiling on Windows or mingw but I know others who are and we can ask. When you get a chance, can you try compiling a simple hello world program, and then a module source file, with gfortran directly? |
Sure. I'll do it tomorrow morning (I think 5.00 am in Miami). Are you active also on Saturdays? |
No rush and whenever it's convenient for you. I'm off until January 6 but read email and can respond on most days. |
Hello. The hello world program and the module source file run perfectly. I even tried building with cmake again but it stops reading some code chunks, as i posted before with fpm. These are the logs i get with the make command: [ 86%] Building Fortran object example/CMakeFiles/dense_mnist.dir/dense_mnist.f90.obj
Error: Unexpected USE statement at (1)
Error: Unexpected IMPLICIT NONE statement at (1)
Error: Derived type 'network' at (1) is being used before it is defined
Error: Unexpected data declaration statement at (1)
Error: Unexpected data declaration statement at (1) 10 | integer :: n, num_epochs 25 | call net % print_info() 32 | call net % train( & 44 | output_metrics = net % evaluate(validation_images, label_digits(validation_labels), metric=corr()) 18 | net = network([ & 61 | if (all(maxloc(net % predict(x(:,i))) == maxloc(y(:,i)))) then 63 | end if 55 | real function accuracy(net, x, y) 30 | epochs: do n = 1, num_epochs 18 | net = network([ & 23 | num_epochs = 10 12 | call load_mnist(training_images, training_labels, & 12 | call load_mnist(training_images, training_labels, & 13 | validation_images, validation_labels) 13 | validation_images, validation_labels) 12 | call load_mnist(training_images, training_labels, & 18 | net = network([ & 19 | input(784), & 20 | dense(30), & |
References:
The text was updated successfully, but these errors were encountered: