No I would not like that. Full disclosure, I am a newbie so haven’t the faintest clue if anything I’m doing makes sense. All I want is to not write the same block over and over again. I think I can define a function that returns the layers within the init, and can call it like
self.l1 = my_func(a, b, c)
but since I’ll call something again under the forward() I feel this is verbose. Or is it necessary and the right way because how pytorch works?