Motivation
Currently tvmc
will only produce a dynamic library version of the network, i.e., an .so
file stored alongside the other artifacts. This library is usually dynamically linked to other applications.
With this change we want to add a flag to tvmc
to get an object file (i.e., with a .o
extension) as well as the dynamic library, to statically link against the target applications.
This will be very useful for bare-metal targets that cannot link against dynamic libraries.
Summary of the change
Standard behavior: tvmc compile mynetwork.tflite
→ mod.params
, mod.so
, mod.json
Enhanced behavior: tvmc compile --flag-name mynetwork.tflite
→ mod.params
, mod.so
, mod.o
, mod.json
Possible names for the tvmc flag
Here is a list of possible flag names:
--bare-metal
--object-file
--static
Feel free to add more, and let’s agree on one in particular