Pruner used to prune parameters iteratively according to sensitivities of parameters in each step.
Pruner used to prune parameters iteratively according to sensitivities
of parameters in each step.
Args:
Args:
place(fluid.CUDAPlace | fluid.CPUPlace): The device place where program execute.
place(fluid.CUDAPlace | fluid.CPUPlace): The device place where
eval_func(function): A callback function used to evaluate pruned program. The argument of this function is pruned program. And it return a score of given program.
program execute.
eval_func(function): A callback function used to evaluate pruned
program. The argument of this function is pruned program.
And it return a score of given program.
scope(fluid.scope): The scope used to execute program.
scope(fluid.scope): The scope used to execute program.