Updated the training exporter code