Thank you for the quick reply. Yes, that seems to fix the problem in our case. However, some other builders still don’t initialize the properties. I’m talking about the ones with the following signature:
Yes same issue (fix should be same code even) - I was looking at the one with type inference as you mentioned it. Good to know that worked for you. Just need to add test later today.
Problem ran into: not all ops can have their attributes converted to properties in generated builders: Tensor_ExpandShapeOp basically relies on users only calling custom builders, the custom builders calling the generated ones but doing additional attribute populating. But if one tries to convert attributes to properties in the generated builders then that fails as the expected attributes are not yet injected.
I’m currently thinking of how to fix it. The easiest would be to say these don’t get default builders generated and one just provides the builders of interest. It’s a bit of a hammer so would consider alternatives first.
I could also try just scoping down for this instance and then generalizing/cleaning up so that this is avoided.