doing GPU initialization for the first time only
The GPU initialization is actually quite constly, e.g. on Minsky it takes roughly 0.7s. That is hurting performance for small matrices. Thus a check has been added and now GPU should be initialized only the first time.
Showing with 21 additions and 3 deletions