Some extensions to the neural network's serialization.