I have a 1D tensor: a, to which I want to apply multiple 1D convolutions.
Each of these convolutions has to be applied to a diminishing slice of the same vector: a[:-i], i.e. the next convolution is applied after dropping the last element of a.
Slicing is very inefficient in this case because it reallocs the whole remainder of a, so the overall procedure does not fit in memory. Is there any way to .resize_() a without affecting the autograder or, alternatively, to specify the convolution limits in each convolution layer? (each convolution is done with a different layer)
Thanks,