Home calling python from java
Reply: 0

calling python from java

user855 Published in July 22, 2018, 5:46 pm

I need to call some Python code from Java.

I am aware though that Jython exists or that Java has its own Python interpreter.

Thing is, said Python code uses some native (C) compiled code, even runs something on GPU.

So I can divide this into two questions:

  1. Does Jython or Java's Python interpreter support this? That is, the Python code (when called from Java) would run with all the C and GPU parts, thus will run roughly as fast as it would on its own.
  2. If neither of the above mentioned ways support this, is there any other way to do this?

P.S. If that helps, although I suppose it's irrelevant, the code I need to run are highly GPU/C optimized neural networks from Keras (with TensorFlow underneath). I absolutely can't afford to run the only-Python interpreted version.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.312672 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO