Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple tensorflow-lite models in one application #6045

Open
AndersNeo opened this issue Dec 19, 2022 · 0 comments
Open

Multiple tensorflow-lite models in one application #6045

AndersNeo opened this issue Dec 19, 2022 · 0 comments

Comments

@AndersNeo
Copy link

I have generated code for multiple tensorflow-lite networks. I got the .o files. Now I'm trying to build all of them into one c++ application. But I get linker warnings when trying to build the application

/usr/bin/ld: ... XXXX.o):(.bss+0x10): multiple definition of activationsBaseAddress'; ... .o):(.bss+0x10): first defined here ...`

/usr/bin/ld: ... YYYY.o):(.bss+0x0): multiple definition of constWeightsBaseAddress'; ... .o):(.bss+0x0): first defined here ...`

/usr/bin/ld: ... ZZZZ.o):(.bss+0x8): multiple definition of mutableWeightsBaseAddress'; ... .o):(.bss+0x8): first defined here ...`

.. and so on.

All .o file seems to export the same symbols. The linker is not happy.

I haven't found any documentation or example of trying to import more than one network. Maybe it's impossible?

Is there a way to around this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant