Call pytorch script from Java?

Hello everyone!

Is there a way to “call” a pytorch script from a java script to perform a specific task? Specifically I have an RL agent written in java, who I want him to sometimes perform based on a trained NN I created in pytorch.

Thank you!