conv = nn.Conv2d(in_channels, x, kernel_size=3, padding=1)

are the parameters you use to instantiate a Conv2d instance. When you want to create the computation graph, call the forward method.
output = conv.forward(input)

which is equivalent to
output = conv(input)