tvm icon indicating copy to clipboard operation
tvm copied to clipboard

[util] add `tvm.support.dump_for_debug` function

Open cconvey opened this issue 3 years ago • 3 comments
trafficstars

  • add a utility function to help with debugging / investigation

    The function is particularly geared to help programmers examine changes to TVM modules and functions as they progress through the scheduling and lowering.

cconvey avatar Jul 26 '22 21:07 cconvey

I find this function helpful for my own development work. I'm not positive that tvm/support.py is the best home for it, but it would be nice to have it around.

cconvey avatar Jul 26 '22 21:07 cconvey

@areusch : This seems like the kind of thing you'd have thoughts on :)

cconvey avatar Jul 26 '22 22:07 cconvey

i definitely don't dislike this, but it kinda seems like it should be a method on ObjectRef or ObjectRef.__str__ should handle this rather than be a separate function in tvm.support. could you suggest some improvements to the existing __str__ or __repr__ or functionality in src/printer? cc @yelite

areusch avatar Aug 02 '22 20:08 areusch