@manupa-arm @leandron thanks for the reply!
@manupa-arm wrote: > I was hinting that we could do use export_library on the runtime.Module > (which is a multi-module hierarchical tree) produced via relay.build using > the correct cross compiler and target object format as .o/.a. I agree we should support binary output. My thought is this would depend on the TVM target in use--but we can talk about it. Either way, Model Library Format should work with source and/or binary. > I think its OK to bundle them in the model library as optional/helper sources > but I think we should not link them in the compiled artifact (.o/.a). Yes, we > would need a tvmc compile flag to specify the output type. I think we should > discuss the contents of Model Library in that RFC Let's discuss this further in the RFC--ideally I'd like to leave anything specific to integration out, but perhaps there are some generic glue code we could include. In this particular situation--would it not make sense to treat `bundle.{c,cc}` as an implementation of the Project API? @leandron wrote: > Do you see any other fundamental problems we are trying to solve with all > being discussed in this thread, that is not captured here? I think that is a fair summary of the different aspects here, but I'd like to point out one particular implication of P1: - by "improving `tvmc compile` to generate a more comprehensive set of outputs in the Model Library Format," we are also proposing that the current µTVM compilation flow be split into two pieces: 1) generating Model Library Format and 2) building a project which can be compiled. This solves a fundamental problem of how to integrate `tvmc` with a variety of projects without adding all of their dependencies to TVM's dependency list. Finally, I'd say that depending on how we choose to implement Model Library Format, we should consider whether it should just become _the_ output format from `tvmc`--but let's discuss that on the RFC. --- [Visit Topic](https://discuss.tvm.apache.org/t/rfc-tvmc-add-support-for-tvm/9049/14) to respond. You are receiving this because you enabled mailing list mode. To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/cd67553670c4da3384b2266823b0572723c0b1cd0f1e6c20522941593aeb484e).