Selective overwriting of network output

I would like to override some entries of the network’s output tensor by values from its input tensor. These values are contiguously stored, i.e. in pseudo-code this would read

output[k:k+10] = input[l:l+10]

I don’t want to remove these entries completely because they have influence on the other non-clamped network outputs. Is there an example of selective skip connections?