This issue stems out from the comment on PR feat: abstraction of xla::OpSharding proto using wrapper class
#9467.
The aim is to move the constructor for the IfrtComputation (and similarly for PjRtComputation) inside the respective source code (i.e. cpp) file