-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change decomposition of zeros_like op #58
base: main
Are you sure you want to change the base?
Conversation
7504f94
to
07386f3
Compare
2ae28ab
to
d426723
Compare
3689b0a
to
faa7c99
Compare
faa7c99
to
392f255
Compare
Can you write tests for these 3 OPs? |
LGTM |
Sorry, I missed one thing :) We want to make as few changes in the TVM part as possible since it is a third party library. So it would be nice to track down where the issue arises and try to fix it on |
Sure, I will add zeros_like test and look into this further. |
@nvukobratTT @vkovinicTT
|
Model faces
AttributeError: <class 'tvm.ir.op.Op'> has no attribute name_hint
and zeros op is binded as global_var and passed as input params to tvmgen_default_forge_main as linked in the log belowdetr.log
The zeros_like operation in TVM was originally implemented by mapping it directly to the corresponding tvm.zeros_like function, while the new_zeros and zeros operations were mapped to the full operation as mentioned here. However, this inconsistency caused the zeros operation to remain unbounded during the partition_graph transformation in TVM.
To address this issue, the decomposition of the zeros_like operation was modified to be mapped to zeros op to align with the zeros_like op being mapped finally to the full operation instead. This ensures consistency and resolves the issue of the zeros operation being unbounded during the transformation.