@smth The problem with that approach is that later (in some other routine) if you want to use the name, the ‘self.my_name’ is long gone.
If there were a name= keyword argument (like Keras supports), then it would make it easier to track, e.g.,  which Conv2d layer out of however many I’m using, to output weights for visualization.
Instead we get  TypeError: init() got an unexpected keyword argument ‘name’