Entropy stable conservative flux form neural networks