Addons: How to use addons in Java/Scala

Created on 28 Oct 2019  路  3Comments  路  Source: tensorflow/addons

Describe the feature and the current behavior/state.
Hi,

We use some contrib functions and for using them in Java/Scala we would find the .so files generated for each OS (mac, Linux, and windows) and load them with TensorFlow.loadLibrary.

I would like to know what should be the procedure in which we can use addons in our Java/Scala project?

Relevant information

  • Are you willing to contribute it (yes/no): yes
  • Are you willing to maintain it going forward? (yes/no): yes
  • Is there a relevant academic paper? (if so, where):
  • Is there already an implementation in another framework? (if so, where):
  • Was it part of tf.contrib? (if so, where):

Who will benefit with this feature?
All the projects using Java/Scala to access generated TF graph files.

All 3 comments

We currently do not have other language bindings, but you should find the .so files after installation under the package. Therefore, it would be in the same procedure like what you've done for contrib.

https://github.com/tensorflow/addons/blob/master/tensorflow_addons/activations/gelu.py#L25

@WindQAQ Thank you for your response. I am going to try it and let you know.

Great. Then I am going to close this issue. Feel free to re-open it if you have further problem. Thanks.

Was this page helpful?
0 / 5 - 0 ratings