This allows unshuffling to be // done next by permuting dims. std::vector<int64_t> added_dims_shape( self.sizes().begin(), self_sizes_batch_end); added_dims_shape.insert( added_dims_shape.end(), {c, oh, downscale_factor, ow, downscale_factor}); const auto input_reshaped = ...