Still I am getting this error,
Given groups=1, weight of size [64, 7, 3], expected input[1, 1, 60000] to have 7 channels, but got 1 channels instead
this 7 channel, I am not getting. Then I am trying to calculate output at each layer
import torch
import torch.nn as nn
I=torch.randn(40,1,60000) #### 40 is batch size,60000 is sample length
layer1 = nn.Sequential(
nn.Conv1d(1,64,3,1),
nn.BatchNorm2d(64),
nn.ReLU(),
nn.MaxPool2d(kernel_size=3, stride=2))
O1=layer1(I)
It says: expected 4D input (got 3D input)