GPU tests (#348)
GPU tests (#348)

* Typos

* Tests are passed

* Uncomment tests

* Add checks for platforms and devices

* GPU tests check if there is available device

* Fix undefined variables

Wangyida/tiny-cnn,Wangyida/tiny-cnn