You would have to create the nn.Conv2d module first and pass then the input to it.
Currently you are trying to use the module in a functional way:
result = torch.nn.Conv2d(inps, 1, 7, stride=1)

Have a look at this tutorial 8 to see how to properly initialize and use modules and the functional API.