Hi!
First, thank you for answering,
I tried your solution and a simpler one (creating kernels without using the weight tensor but a constant value) and the result remains the same: the value of self.weight is not changing along training.
May have you another advice? Should I try create a Function like explained here https://pytorch.org/docs/stable/notes/extending.html 5?
Best regards.