tensorflow / java

Java bindings for TensorFlow
Apache License 2.0
785 stars 193 forks source link

Fixing the native build so it can find the TSL headers #534

Closed Craigacp closed 3 months ago

Craigacp commented 3 months ago

The TSL headers are in a different source root in a Bazel build to the packaged whl files. This PR adds that source root to the JavaCPP generate task and modifies the preset to look for them in both places.

Fixes #529.

It also pulls in the start of some changes I was making to reduce the number of warnings from error prone, but I've not completed that yet.