I am a newer user of pytorch, and am currently constructing a CNN. I am using a Sequential object with a number of convolutional layers, and as such want to add some max pooling. However, my editor (CLion) tells me that the
torch::nn::MaxPool1D class does not exist. I looked at the docs, and apparently it is supposed to be defined in a file called
....nn/modules/pooling.h, which does not appear in my copy of the sources. I have many others in the same directory, such as
dropout and more.
I am able to use
torch::nn::Functional successfully, so what could be the reason for missing the pooling layers?