Working through
https://github.com/denizyuret/Knet.jl/blob/master/tutorial/40.mlp.ipynb I found that, in order to dismiss my GPU completely, I needed to define mnistdata(,xtype=atype()) where atype() = Array{Float32}. Otherwise the mnistdata is of type KnetArray...
I will make a Pull Request on this, if that is wanted.
The reason I disabled using my GPU is because I would often have training suspend at an arbitrary point... Some other times it would crash because of running out of memory... and sometimes it would succeed, although without really using my GPU, only filling up the dedicated vram...
I have tried to investigate this... And thought that maybe I should attempt to clear the cached memory after the Knet.gc() within the tutorial's trainResults() func..
Are there any thoughts or better suggestions?
I have yet to test calling `CuArrays.reclaim()` and will post the results here when I have them...
Any existing tests or complaints on this?
Windows, Julia 1.4.1, Knet#master
Regards,
Ross