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

Issue with loading model from: tensorflow_decision_forests #492

Open
zYeee opened this issue Apr 12, 2023 · 6 comments
Open

Issue with loading model from: tensorflow_decision_forests #492

zYeee opened this issue Apr 12, 2023 · 6 comments

Comments

@zYeee
Copy link

zYeee commented Apr 12, 2023

hi team,
I'm encountering a similar issue with: #480
When I tried to load val opList = TensorFlow.loadLibrary(this::class.java.getResource("/inference.so")!!.path),
I can see the exception like:

app {-tdh44/load-model#GET] Unhandled exception from a service:","args":[{"cancelled":false,"timedOut":false}],"exception":"java.lang.UnsatisfiedLinkError: /app/resources/inference.so: undefi │
│ ned symbol: _ZN10tensorflow6StatusC1ENS_5error4CodeEN4absl12lts_2021032411string_viewEOSt6vectorINS_10StackFrameESaIS7_EE\n"}

Could anyone help to take a look? Thanks in advance!

@Craigacp
Copy link
Collaborator

What versions of TF-Java and TF decision forests are you using? And what platform are you running on?

@zYeee
Copy link
Author

zYeee commented Apr 13, 2023

What versions of TF-Java and TF decision forests are you using? And what platform are you running on?

thanks for responding @Craigacp ,
Now we only use the dependency of org.tensorflow:tensorflow-core-platform:0.5.0
and tfdf version is 0.2.4

Should I add another dependency that includes TF-Java?

And we execute our app in docker container: gradle:7.4.2-jdk17, the base image is ubuntu:22.04

@Craigacp
Copy link
Collaborator

Looks like that TFDF version is pretty old. Try using the 1.0.1 release, that should be compatible with TF 2.10 which is the version built into TF-Java 0.5.0.

@zYeee
Copy link
Author

zYeee commented Apr 14, 2023

Looks like that TFDF version is pretty old. Try using the 1.0.1 release, that should be compatible with TF 2.10 which is the version built into TF-Java 0.5.0.

I also tried the latest version of tfdf: https://pypi.org/project/tensorflow-decision-forests/#files
still saw the error

@zYeee
Copy link
Author

zYeee commented Apr 14, 2023

just tried the tfdf version: 1.0.1: https://pypi.org/project/tensorflow-decision-forests/1.0.1/, still saw the error: undefined symbol: _ZNK10tensorflow8OpKernel11TraceStringB5cxx11ERKNS_15OpKernelContextEb

@Craigacp
Copy link
Collaborator

We've moved to using the latest binaries from tensorflow so this should work better now, without symbol mismatches.

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

2 participants