Code Monkey home page Code Monkey logo

Comments (6)

EmergentOrder avatar EmergentOrder commented on June 8, 2024

I just moved to the official Java API.
The result was both a decent speed boost and cleaner interaction w/ ORT.
There are other reasons to use JavaCPP (relatively smooth interoperability between multiple native libs, for example)
The JavaCPP preset served this project well, but the time has come.

from onnx-scala.

neboduus avatar neboduus commented on June 8, 2024

Does this mean that you are inviting people to use Java API (https://github.com/microsoft/onnxruntime/blob/master/docs/Java_API.md) ? instead of this repository? I am looking for a solution to run my ONNX NN model into a Scala 2.11 Play app.

from onnx-scala.

EmergentOrder avatar EmergentOrder commented on June 8, 2024

Not what I meant, although if all you want is full model inference, you could do that (with a bit of added ceremony).
I just meant that I am now using the Java API under the hood here.
This repo also offers a fine-grained API (see the README), useful for other tasks, which the Java API does not.
However, we only support Scala 2.13 & 3 (dotty). Is there a reason you can't use 2.13?

from onnx-scala.

neboduus avatar neboduus commented on June 8, 2024

Yes, the application has too many dependencies which rely on 2.11 and a migration would mean too much changes to the code base. Given that this lib does not support my Scala version, do you think is possible to simply use Java API instead?

from onnx-scala.

EmergentOrder avatar EmergentOrder commented on June 8, 2024

As I said, sure, it is possible.
I would strongly encourage you to move up from 2.11 though, there are no further releases / support planned, so it is effectively end of life.

from onnx-scala.

neboduus avatar neboduus commented on June 8, 2024

Thanks a lot for your replies! Yes, we need to plan the migration and I hope we will be able to do that soon!

from onnx-scala.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.