How to extract tvm module

If your requirement is to copy to NDArray you may use flattened to 1D array and TVMArrayCopyFromBytes API directly. Hence you may not need expand dimensions / reshape.

In your case for C++ all you need to do is read cat.png decode it into a buffer of size 64x64x3 bytes and use TVMArrayCopyFromBytes to set the input into NDArray.

how to dump this graph?