How to export lib, graph and params files on local machine?

Hello,

I am a beginner in the TVM community.

I am trying to apply relay passes on the onnx model given on the website.

After applying the relay passes I am not able to export lib, graph and params files on my local machine. I am able to export lib as follows:

with tvm.transform.PassContext(opt_level=3): lib = relay.build(mod, target=target, params=params)

Whats the best way to export all three files?

Thanks in advance!