srkreddy1238 commented on code in PR #17599:
URL: https://github.com/apache/tvm/pull/17599#discussion_r1944885960
##########
src/script/printer/relax/utils.h:
##########
@@ -141,7 +141,7 @@ inline int FindVDeviceIndexByTargetKind(const VDevice&
vdevice, const IRDocsifie
int kind_index = 0;
for (size_t i = 0; i < vdevices.size(); ++i) {
auto vdev = Downcast<VDevice>(vdevices[i]);
- if (vdev.same_as(vdevice)) {
+ if (vdev == vdevice) {
Review Comment:
> Seems this is a bug in our parsing mechanism, I think we should fix the
parsing in such case to remap things back to ptr equality. if there is a min
example, we can work together to fix. cc @yongwww
This is fine now. It was my fault where I tried to print only the ``main``
function from mod and expect appropriate ``VDevice`` index. We are good here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]