1

I am using Java 13 (I'm not sure if that is relevant) and I'm making a blackjack game. I want to add a neural network model after training it in python to my Java application. However, on here it says

"Note: There is no libtensorflow support for TensorFlow 2 yet."

I haven't even started making my model so I have not tried to load a model into Java. Is this going to be a problem? Do I need to use an older version of TensorFlow?

2
  • 2
    To run TF 2.0 models in Java, you can instead use TensorFlow Lite. You can build it with Gradle. See here. Commented Feb 12, 2020 at 6:25
  • Wow thanks! It looks like it will have decent performance as well after a short read here @ShubhamPanchal Commented Feb 12, 2020 at 7:16

1 Answer 1

1

If you do not want to convert your model to TF Lite, you can also use the snapshots available for TensorFlow Java with 2.x support enabled, check this repository.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.