nnet gpu code working, TODO: fixup to use same optimizer for rbm /nnet