get_pruned_conv('weight')
A Conv2d layer possess a 4d-tensor as weights. This means that there exist many ways of removing blocks from it.
In the case of convolution filters, removing 0-D elements is equivalent to removing individual weights.
weight granularity1-D blocks of elements is equivalent to removing vectors from the convolution filters. There are several ways to chose the vectors, that will be represented below.
shared_weight: this granularity is very particular as it removes individual weights from a filter, but with a pattern that is shared across all filters.channel: remove vector of weights along the channel axis.column: remove vector of weights along the height axis.row: remove vector of weights along the width axis.shared_channel: remove vector of weight along the channel axis, but with a pattern that is shared across all filters.shared_column: remove vector of weight along the height axis, but with a pattern that is shared across all filters.shared_row: remove vector of weight along the width axis, but with a pattern that is shared across all filters.vertical_slice: remove vertical slices of weight along the height axis.horizontal_slice: remove vertical slices of weight along the width axis.kernel: remove kernels of from the convolution filters.shared_vertical_slice: remove vertical slices of weight along the height axis, with a pattern that is shared across all filters.shared_horizontal_slice: remove horizontal slices of weight along the width axis, with a pattern that is shared across all filters.shared_kernel: remove kernels of weight from the convolution filters, with a pattern that is shared across all filters.filter: remove entire filters.As for the convolution filters, weights from a Linear layer can be removed independently.
weight: remove individual weights.column: remove column of weight, which corresponds to removing input neurons.row: remove rows of weight, which corresponds to removing output neurons.This is an experimental part of the library