Research Article

Exploiting the Relationship between Pruning Ratio and Compression Effect for Neural Network Model Based on TensorFlow

Table 1

Descriptions of parameters of the pruning command.

ParameterDescriptionDefault value

−1Most basic model training
−2Pruning is performed on the most basic model
−3Pruning is performed, and network parameters of sparsification are stored
--train_data_dirFolder path containing training data/tmp/mnist_data
--train_dirLog data during training and folder path containing model data/tmp/mnist_train
--variables_dirFolder containing data of the last trained model/tmp/mnist_variables
--max_stepsNumber of iterations of the basic model10,000
--batch_sizeSample data size of each batch during model training32
--sparse_ratioPercentage of compression parameter of pruning/volume of parameters set to 00.9
--pruning_variable_namesParameters on which pruning could be performed. Optional parameters include w_conv1, w_conv2, w_fc1, and w_fc2w_fc1, w_fc2