Access to the weight of an intermediate layer in a network based on a specific input

I’m not understanding the question. Are you trying to collect the intermediate output of this layer? Are you trying to skip all other layers and just run the layer on the input directly?

For the former I would check out a forward hook example e.g., How can l load my best model as a feature extractor/evaluator? - #6 by ptrblck

For the latter, provided that the convolution’s expected input channels matches that of the input, you can create a new convolution layer and clone the weights of the existing layer into it.