A neural net implementation based on thrust