Create a TVM Function for Compilation
The compile action uses the same tvm Function specification as the build action. Create the Function with its source model and generated ir_model and so_model references. Normally leave these empty and let
build/compile update them; an existing versioned reference can be supplied explicitly.