-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[Relay] Minor fix for some TF OD models #6729
Conversation
return tvm::tir::Select(condition(condition_idx) != 0, x(), y()); | ||
PrimExpr cond; | ||
if (condition->shape.size() == 0) { | ||
cond = condition(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in this case, does cond != 0 alway hold?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. cond is a scalar.
python/tvm/relay/op/_transform.py
Outdated
""" | ||
cond_shape = inputs[0] | ||
x_shape = inputs[1] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could be just one-liner
out_shape = x_shape if x_shape.shape else cond_shape
* Minor fix for some tf od models * More fix * Minor fix * Fix lint * Minor fix
* Minor fix for some tf od models * More fix * Minor fix * Fix lint * Minor fix
* Minor fix for some tf od models * More fix * Minor fix * Fix lint * Minor fix
* Minor fix for some tf od models * More fix * Minor fix * Fix lint * Minor fix
* Minor fix for some tf od models * More fix * Minor fix * Fix lint * Minor fix
* Minor fix for some tf od models * More fix * Minor fix * Fix lint * Minor fix
* Minor fix for some tf od models * More fix * Minor fix * Fix lint * Minor fix
* Minor fix for some tf od models * More fix * Minor fix * Fix lint * Minor fix
@trevor-m @zhiics