Do not require subclasses to set .tied_weights attribute, use getattr instead.