Pruning removes weights, connections, or entire structural units from a trained neural network specifically to reduce its size and inference compute cost, while trying to preserve as much of its original accuracy as possible. The specific removal granularity, individual weights (unstructured pruning) versus whole channels or filters (structured pruning), and the specific criterion used to decide what to remove, commonly weight magnitude or a more sophisticated importance estimate, together determine how much compression a given pruning approach can achieve at a given accuracy cost.