Export Model to ONNX

Is it possible to export a model that was created using the INetworkDefinition functions to an ONNX file so we can visualize the network?

I’ve seen the examples for importing from the ONNX format, but not the other way around.