Ok so I figured it out myself. You will get a node called ‘representation’ just by putting all your representation layers into an nn.sequential() with the variable name ‘representation’. So this is very intuitive. In fact, I already had it this way, I just didn’t recognize it because my model had so many parts that the graph was a bit messy.