How to get names of inputs, outputs and their shapes in tvm::runtime


I am trying to implement TVM runtime under simple abstraction layer in C++. All I need right now is the ability to:

  • get input/output count
  • get input/output names
  • get input/output shapes

All tutorials I’ve seen were mostly based of code similar to one here: , where only PackedFunc were used for “set_input” or “get_output”. Are there functions for getting some metadata about I/O?

For graph executor, see for list of functions I believe.