How can I access and print the values in constant nodes such as the scalar value in the floating point tensor below?
2 Likes
Same issue here. Any hints?
In what sense do you mean access? If you parse the module, you can get it by using the data
member on a Constant
AST node. If you want to print a module in the text format with the constants shown, I believe the method is mod.astext(show_meta_data=True)
2 Likes