Hi,
No, if you use numpy operations inside the forward of your module, they won’t create nodes in the computation graph of the network, and thus won’t be differentiated.
You can write a new Function though that uses numpy internally, but you need to provide the backward computation for it. Here is a nice introductory tutorial 178 explaining how to use numpy to create new Functions.