How can I choose part of output flowing into another network

As written in topic, How can I choose part of output of convolution layer into another network? e.g. I defined a encoder with convolution layers and it generates a 100D output. What should I do for separating it into two part and only extract its first half 50D data as input of other structure?

Hi,

You can use normal indexing to get a subset of the output and then use it. I usually use .narrow() for that.