Hi,
I’m trying to add a new default argument to many Tensor construction functions. Some of these include those which are fallback ops (for example efficientzerotensor, rand, etc.). This means that at build time, I get the following error:
WARNING: The generated AOTInductor C shim header files have unexpectedly changed. This
indicates an AOTInductor fallback operator ABI backward compatibility breakage!!!
Only in a limited number of situations, this is allowed:
1. You added a fallback op to the inductor_fallback_ops list in torchgen/aoti/fallback_ops.py.
If that's the case, run `python torchgen/gen.py --update-aoti-c-shim` to update the existing
C shim header files.
2. You added a new default argument to an existing fallback op. This is clearly a BC breaking
change in the AOTInductor land. In this case, you need to keep a manual copy of that existing
fallback op in a file, e.g. torch/csrc/inductor/aoti_torch/c/shim.h, bump up the version
number of that fallback op in the newly generated C shim files, and update the cpp wrapper
codegen to generate the correct cpp call for this op. Contact AOTInductor team for assistance.
Since I am changing the signaturss of these fallback ops, I can infer that it falls under (2). However, it’s not too clear to me how to go about carrying out these steps. Especially, how to ensure that the generated shim files have a bumped version number. I can’t seem to find any examples of this from the past - if there any, pointers to them would be much appreciated.
This leaves me with the final step, “Contact AOTInductor team for assistance”. Hopefully, this forum reaches the right people. Else, is there somewhere else I can go to achieve this?
Thanks