def define_pruning_flags():
    'Define flags for pruning methods.'
    flags.DEFINE_string('pruning_method', None, 'Pruning method.None (no pruning) or polynomial_decay.')
    flags.DEFINE_float('pruning_initial_sparsity', 0.0, 'Initial sparsity for pruning.')
    flags.DEFINE_float('pruning_final_sparsity', 0.5, 'Final sparsity for pruning.')
    flags.DEFINE_integer('pruning_begin_step', 0, 'Begin step for pruning.')
    flags.DEFINE_integer('pruning_end_step', 100000, 'End step for pruning.')
    flags.DEFINE_integer('pruning_frequency', 100, 'Frequency for pruning.')
Define flags for pruning methods.
def define_pruning_flags():
    
    flags.DEFINE_string('pruning_method', None, 'Pruning method.None (no pruning) or polynomial_decay.')
    flags.DEFINE_float('pruning_initial_sparsity', 0.0, 'Initial sparsity for pruning.')
    flags.DEFINE_float('pruning_final_sparsity', 0.5, 'Final sparsity for pruning.')
    flags.DEFINE_integer('pruning_begin_step', 0, 'Begin step for pruning.')
    flags.DEFINE_integer('pruning_end_step', 100000, 'End step for pruning.')
    flags.DEFINE_integer('pruning_frequency', 100, 'Frequency for pruning.')