Dear @ptrblck
I tried your solution and it worked. the output of torch.allclose function became True.
If you don’t mind, I have one more question. In your code, you use the block
with torch.no_grad():
for defining new conv. layer. it means that the parameter of this new conv.layer is not trainable?
When I remove with torch.no_grad(): I got error. If I want to make it trainable how I should implemented it?
Thank you for your attention given to my issue.