You could use my linked code snippet to implement your custom convolution and substitute nn.Conv2d with your class.
The easiest way would be to use my code in your forward method and set the weight and bias in the __init__ of your MyConv2d class.