Follow the approach set by infer return types attributes setting during
construction and add call to populate default attributes. This method
returns no error state and treating the absence of registered op merely
as warning as it doesn't invalidate the validity of the op being
constructed (contrary to return type inference case).
Previously I also had C binding that invokes it on the op (it matches
the C++ side) but its not the preferred way of invoking the populating,
so not exposing C API side.
Showed usage Python side but intention is for that to be follow up and
will remove before submitting.
Can you file an issue to detail and track this? Would be good to have more context on the desired state.