Freezing the model to a protobuf format