[Apache TVM Discuss] [Questions] Is it possible to compute only index when defining argmax

2021-07-08 Thread Anirudh via Apache TVM Discuss
I was trying to define argmax using **comm_reducer**, and I couldn't find any way to define a comm_reducer that **just computes the index of the maximum value**, and does not compute the value as well. For example, Taking the comm_reducer for argmax as defined in [`tests/python/integration/t

[Apache TVM Discuss] [Questions] Finding types of TVM objects and accessing their attributes in GDB

2021-08-16 Thread Anirudh via Apache TVM Discuss
Hi all, Just a generic question about debugging in GDB. Is there a good way to find the proper type of an `"object"` in GDB? What I mean by that is, say there is an `AddNode` passed to a function as a `PrimExpr` and while debugging this function, is there way to find that it actually belongs

[Apache TVM Discuss] [Questions] Finding types of TVM objects and accessing their attributes in GDB

2021-08-17 Thread Anirudh via Apache TVM Discuss
Thanks for the reply, atleast I'm not the only one who is using the deleter_ hack to find the types of nodes. And thanks for the ideas with PrettyPrint, I haven't used it too much in gdb, I normally use the `p tvm::Dump(xxx)` for printing Objects and ObjectRefs. So, out of curiosity, is ther

[Apache TVM Discuss] [Questions] Finding types of TVM objects and accessing their attributes in GDB

2021-08-19 Thread Anirudh via Apache TVM Discuss
Right, I think `tvm::Dump(xxx)` also supports printing entire PrimFunc. The main question I had was, is there a clean way to find the underlying type of an `Object`/`ObjectRef`. Basically, if I have a `PrimFunc` is there a way to find that the underlying type is say an `AddNode`. --- [Vis

[Apache TVM Discuss] [Questions] [Rpc Related] What's the difference between rpc_proxy / rpc_server / rpc_tracker?

2023-06-28 Thread Anirudh via Apache TVM Discuss
This is pretty cool, thanks a lot for the detailed explanation. --- [Visit Topic](https://discuss.tvm.apache.org/t/rpc-related-whats-the-difference-between-rpc-proxy-rpc-server-rpc-tracker/3054/4) to respond. You are receiving this because you enabled mailing list mode. To unsubscribe fr

[Apache TVM Discuss] [Questions] Questions about IR Expressions - RelayExpr & RelayExprNode

2023-07-27 Thread Anirudh via Apache TVM Discuss
`RelayExprNode` represents the `ObjectPtr` in the AST. The same node might need to be referenced at different places across code base, and so the `RelayExpr` is a reference counted object that points to the `RelayExprNode`. You can think of `RelayExpr` as a type of shared_ptr to the underlying