Coder Social home page Coder Social logo

Comments (4)

agibsonccc avatar agibsonccc commented on May 23, 2024

@bo-ve do you mind taking a crack at a pull request for this? Otherwise I can take a look at this before the next release. Thanks!

from deeplearning4j.

gerrycoding avatar gerrycoding commented on May 23, 2024

I seem to have the same problem. I cannot require the packages in my module-info file. The module-info of deeplearning.modelimport has only exports of names that are not it, such as:
exports org.deeplearning4j.frameworkimport.keras.keras.layers;
What it should say is probably org.deeplearning4j.nn.modelimport.keras.layers
Unfortunately, thus the library cannot be used.

from deeplearning4j.

agibsonccc avatar agibsonccc commented on May 23, 2024

Great feedback! I'm unfortunately finalizing testing right now and will get to this before the release. It's taking longer than I'd like but all tests must pass on both cpu and cuda before I can finish this out. I'll do a lot more testing on java 17 to make sure everything is good. @gerrycoding could you give me more information about the environment?
Could also clarify about it not being usable at all? I'm at least able to run code in java 17 no problem.
It's been quite a while since M2.1 so maybe this isn't even an issue anymore.

from deeplearning4j.

gerrycoding avatar gerrycoding commented on May 23, 2024

We are building a game in JavaFX. Neural networks are supposed to strengthen the ai-players. So the idea is to build the networks with python/keras and then import them into the java project. If I have a plain Java project, not using JavaFX and thus not having any module-info file, the imports are found in the external libraries which are included via maven. So I can compile the program and load the network and make an inference. But as soon as I include any module-info file, which I need to include the FX libraries, many packages I need, are not found if I use the proper names of the the packages in my "require" declarations, since the module-info of those modules do not export them. As I quoted above, in the 'modelimport' module the names of the exports don't fit the names of the real packages. Intellij asks me to modify the module-info and add the correct exports. But of course, I cannot write to them.
Im using Java 17, and the M2.1 Version. I tried to change the maven dependencies to an older version, but maven then says it cannot find them.

from deeplearning4j.

Related Issues (20)

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.