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

Switch to domain named prop and fix tensorflow toString issue #19

Merged
merged 1 commit into from
May 1, 2024

Conversation

alanocallaghan
Copy link
Contributor

Related to the PR linked in #18, this uses the domain named property, which is a bit less ambiguous.

Also fixes an error when trying to call toString on a TensorFlow engine, it'd end up going into LibUtils.getLibName() which leads eventually into downloadTensorFlow, which fails given the default offline setting

See https://github.com/deepjavalibrary/djl/blob/1d3613aaab1fcc5cbb3398a60152f6ce49a76342/engines/tensorflow/tensorflow-engine/src/main/java/ai/djl/tensorflow/engine/TfEngine.java#L177C62-L177C72

@petebankhead
Copy link
Member

As far as I can see, ai.djl.offline was introduced in DJL 0.27.0 and so I presume this is only targeting QuPath v0.6.0?

I'll update the version accordingly in another PR (and I don't see a reason to stick with Java 17 compatibility, so will also move that to 21).

@petebankhead petebankhead merged commit b82abb3 into main May 1, 2024
1 check passed
@alanocallaghan alanocallaghan deleted the tf-and-online-prop branch May 1, 2024 09:15
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

Successfully merging this pull request may close these issues.

2 participants